shish 5 سال پیش
والد
کامیت
c4b6ebffbd
1فایلهای تغییر یافته به همراه1 افزوده شده و 4 حذف شده
  1. 1 4
      app-ghs/controllers/ProductController.php

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

@@ -382,11 +382,8 @@ class ProductController extends BaseController
             if (empty($val)) {
                 util::fail("参数错误!");
             }
-            $data = [
-                $type => $val
-            ];
+            $data = [$type => $val];
             ProductClass::updateByCondition($where, $data);
-            ProductClass::autoPriceById($id);
 
             //2021.7.6 linqh 如果是首店,则更新全部分店
             ProductClass::updateSyncProduct($id, $this->shopId, $data);