shish hace 5 años
padre
commit
460bab0dfe
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      app-ghs/controllers/ProductController.php

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

@@ -342,7 +342,10 @@ class ProductController extends BaseController
         $shop = $this->shop;
         $shop = $this->shop;
         $default = $shop->default ?? 0;
         $default = $shop->default ?? 0;
         if ($default != 1) {
         if ($default != 1) {
-            util::fail('请在首店修改');
+            //除了上下架其它只能在首店修改
+            if (isset($post['delStatus']) == false) {
+                util::fail('请在首店修改');
+            }
         }
         }
 
 
         $shopAdmin = $this->shopAdmin;
         $shopAdmin = $this->shopAdmin;