Parcourir la source

去掉多颜色管理

shish il y a 7 mois
Parent
commit
555574e1d8
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      app-ghs/controllers/ProductController.php

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

@@ -1370,7 +1370,7 @@ class ProductController extends BaseController
         }
 
         $shopAdmin = $this->shopAdmin;
-        if (isset($shopAdmin->super) == false || $shopAdmin->super != 1) {
+        if (!isset($shopAdmin->super) || $shopAdmin->super != 1) {
             util::fail('管理员才能添加花材');
         }
         $post['sjId'] = $this->sjId;
@@ -1481,6 +1481,7 @@ class ProductController extends BaseController
         unset($post['itemId']);
         unset($post['id']);
         unset($post['delStatus']);
+        unset($post['variety']);
 
         ProductClass::addProduct($post, $this->shop);
         util::complete('复制成功');