Procházet zdrojové kódy

添加和修改花材

shish před 3 roky
rodič
revize
fd1fa13494
1 změnil soubory, kde provedl 2 přidání a 3 odebrání
  1. 2 3
      app-ghs/controllers/ProductController.php

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

@@ -616,10 +616,9 @@ class ProductController extends BaseController
         $post = Yii::$app->request->post();
         $post = Yii::$app->request->post();
 
 
         $shop = $this->shop;
         $shop = $this->shop;
-        $join = $shop->join ?? 0;
         $default = $shop->default ?? 0;
         $default = $shop->default ?? 0;
-        if ($join == 0 && $default == 0) {
-            util::fail('请在首店操作');
+        if ($default == 0) {
+            util::fail('请在首店添加花材,分店只能修改花材');
         }
         }
 
 
         $shopAdmin = $this->shopAdmin;
         $shopAdmin = $this->shopAdmin;