shish 8 місяців тому
батько
коміт
20c698528a

+ 1 - 1
app-ghs/controllers/ProductController.php

@@ -641,7 +641,7 @@ class ProductController extends BaseController
         }
 
         $shopAdmin = $this->shopAdmin;
-        if (isset($shopAdmin->super) == false || $shopAdmin->super != 1) {
+        if (!isset($shopAdmin->super) || $shopAdmin->super != 1) {
             util::fail('超管才能修改');
         }
 

+ 1 - 0
biz-ghs/product/classes/ProductClass.php

@@ -1341,6 +1341,7 @@ class ProductClass extends BaseClass
             'targetId' => $targetId,
         ];
         PriceChangeClass::addData($changeData);
+        return true;
     }
 
     //下单时计算商品的价格  lqh 2021.1.28