Jelajahi Sumber

价格控制

shish 5 tahun lalu
induk
melakukan
c4b6ebffbd
1 mengubah file dengan 1 tambahan dan 4 penghapusan
  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)) {
             if (empty($val)) {
                 util::fail("参数错误!");
                 util::fail("参数错误!");
             }
             }
-            $data = [
-                $type => $val
-            ];
+            $data = [$type => $val];
             ProductClass::updateByCondition($where, $data);
             ProductClass::updateByCondition($where, $data);
-            ProductClass::autoPriceById($id);
 
 
             //2021.7.6 linqh 如果是首店,则更新全部分店
             //2021.7.6 linqh 如果是首店,则更新全部分店
             ProductClass::updateSyncProduct($id, $this->shopId, $data);
             ProductClass::updateSyncProduct($id, $this->shopId, $data);