|
@@ -232,11 +232,11 @@ class ProductController extends BaseController
|
|
|
$itemInfoData = ProductClass::kdItemGroup($itemInfoData, $level);
|
|
$itemInfoData = ProductClass::kdItemGroup($itemInfoData, $level);
|
|
|
} elseif ($requestType == 'itemList') {
|
|
} elseif ($requestType == 'itemList') {
|
|
|
//花材列表
|
|
//花材列表
|
|
|
- if (in_array($this->mainId, [52, 1459, 2126, 2128])) {
|
|
|
|
|
- //惠雅鲜花的不列出frontHide字段,因为他花材太多很慢了
|
|
|
|
|
- $field = 'id,py,cover,name,cost,itemId,classId,skPrice,bigUnit,smallUnit,ratio,ratioType,variety,price,discountPrice,skMore,stock,actualSold,stockWarning,status,presell';
|
|
|
|
|
- } else {
|
|
|
|
|
|
|
+ if (in_array($this->mainId, [7615, 7756])) {
|
|
|
|
|
+ //只有花悠星和勇记显示隐藏按钮功能,其他人不显示。frontHide
|
|
|
$field = 'id,py,cover,name,cost,itemId,classId,skPrice,bigUnit,smallUnit,ratio,ratioType,variety,price,discountPrice,skMore,stock,actualSold,stockWarning,status,presell,frontHide';
|
|
$field = 'id,py,cover,name,cost,itemId,classId,skPrice,bigUnit,smallUnit,ratio,ratioType,variety,price,discountPrice,skMore,stock,actualSold,stockWarning,status,presell,frontHide';
|
|
|
|
|
+ } else {
|
|
|
|
|
+ $field = 'id,py,cover,name,cost,itemId,classId,skPrice,bigUnit,smallUnit,ratio,ratioType,variety,price,discountPrice,skMore,stock,actualSold,stockWarning,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);
|