shish il y a 3 ans
Parent
commit
ca7a6fbfaa
1 fichiers modifiés avec 6 ajouts et 6 suppressions
  1. 6 6
      app-ghs/controllers/ProductController.php

+ 6 - 6
app-ghs/controllers/ProductController.php

@@ -235,15 +235,15 @@ class ProductController extends BaseController
         } elseif ($requestType == 'itemList') {
         } elseif ($requestType == 'itemList') {
             //花材列表
             //花材列表
             if (getenv('YII_ENV', 'local') == 'production') {
             if (getenv('YII_ENV', 'local') == 'production') {
-                //花大苪 惠雅 不显示隐藏按钮功能,其他人显示。frontHide
-                $notShowFrontHide = [8164, 52, 1459, 2126, 2128];
+                $showFrontHide = [7615, 7756, 1496];
             } else {
             } else {
-                $notShowFrontHide = [];
+                $showFrontHide = [644];
             }
             }
-            if (in_array($this->mainId, $notShowFrontHide)) {
-                $field = 'id,py,cover,name,cost,itemId,classId,skPrice,variety,price,hjPrice,discountPrice,hjDiscountPrice,skDiscountPrice,stock,actualSold,status,presell';
-            } else {
+            if (in_array($this->mainId, $showFrontHide)) {
+                //只有花悠星、勇记、丽子鲜花 显示隐藏按钮功能,其他人不显示。frontHide
                 $field = 'id,py,cover,name,cost,itemId,classId,skPrice,variety,price,hjPrice,discountPrice,hjDiscountPrice,skDiscountPrice,stock,actualSold,status,presell,frontHide';
                 $field = 'id,py,cover,name,cost,itemId,classId,skPrice,variety,price,hjPrice,discountPrice,hjDiscountPrice,skDiscountPrice,stock,actualSold,status,presell,frontHide';
+            } else {
+                $field = 'id,py,cover,name,cost,itemId,classId,skPrice,variety,price,hjPrice,discountPrice,hjDiscountPrice,skDiscountPrice,stock,actualSold,status,presell';
             }
             }
             $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
             $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
             $itemInfoData = ProductClass::itemListGroup($itemInfoData, $level);
             $itemInfoData = ProductClass::itemListGroup($itemInfoData, $level);