Jelajahi Sumber

超级会员 修改排序

shish 3 tahun lalu
induk
melakukan
bf21524581
1 mengubah file dengan 1 tambahan dan 3 penghapusan
  1. 1 3
      app-ghs/controllers/ProductController.php

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

@@ -736,7 +736,7 @@ class ProductController extends BaseController
         $shop = $this->shop;
         $default = $shop->default ?? 0;
         if ($default == 0) {
-            util::fail('当前直营分店,只能回总店修改');
+            util::fail('当前直营分店,请返回总店修改');
         }
 
         $shopAdmin = $this->shopAdmin;
@@ -771,7 +771,6 @@ class ProductController extends BaseController
             $id = $data['id'] ?? 0;
             unset($data['id']);
             ProductClass::updateById($id, $data);
-
             $ptItemId = $infoList[$id]['itemId'] ?? 0;
             if (empty($ptItemId)) {
                 continue;
@@ -786,7 +785,6 @@ class ProductController extends BaseController
                     ProductClass::updateByCondition(['mainId' => $currentMainId, 'itemId' => $ptItemId], $data);
                 }
             }
-
         }
         util::complete('修改成功');
     }