Răsfoiți Sursa

添加和修改花材

shish 3 ani în urmă
părinte
comite
fd1fa13494
1 a modificat fișierele cu 2 adăugiri și 3 ștergeri
  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();
 
         $shop = $this->shop;
-        $join = $shop->join ?? 0;
         $default = $shop->default ?? 0;
-        if ($join == 0 && $default == 0) {
-            util::fail('请在首店操作');
+        if ($default == 0) {
+            util::fail('请在首店添加花材,分店只能修改花材');
         }
 
         $shopAdmin = $this->shopAdmin;