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