|
|
@@ -617,7 +617,7 @@ class ProductController extends BaseController
|
|
|
$level = $ghs['giveLevel'] ?? 1;
|
|
|
$field = 'id,py,cover,name,ratio,classId,itemId,weight,smallUnit,bigUnit,smallUnit,smallRatio,ratioType,variety,price,skPrice,skDiscountPrice,hjPrice,hjDiscountPrice,actualSold,stock,stockWarning,discountPrice,presell,presellDate,reachNum,reachNumDiscount,limitBuy';
|
|
|
$itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
|
|
|
- $itemInfoData = ProductClass::hdCgGroup($itemInfoData, $level);
|
|
|
+ $itemInfoData = ProductClass::hdCgGroup($itemInfoData, $level, $ghs);
|
|
|
$myProduct = ProductClass::getAllByCondition(['mainId' => $this->mainId, 'delStatus' => 0], null, 'id,stock,onStock,stockWarning,itemId', 'itemId');
|
|
|
if (!empty($itemInfoData)) {
|
|
|
$myShop = $this->shop;
|
|
|
@@ -706,7 +706,7 @@ class ProductController extends BaseController
|
|
|
$level = $ghs['giveLevel'] ?? 1;
|
|
|
$field = 'id,py,cover,name,ratio,classId,itemId,weight,smallUnit,bigUnit,smallUnit,smallRatio,ratioType,variety,price,skPrice,skDiscountPrice,hjPrice,hjDiscountPrice,actualSold,stock,stockWarning,discountPrice,presell,presellDate,reachNum,reachNumDiscount,limitBuy';
|
|
|
$itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
|
|
|
- $itemInfoData = ProductClass::hdCgGroup($itemInfoData, $level);
|
|
|
+ $itemInfoData = ProductClass::hdCgGroup($itemInfoData, $level, $ghs);
|
|
|
$myProduct = ProductClass::getAllByCondition(['mainId' => $this->mainId, 'delStatus' => 0], null, 'id,stock,onStock,stockWarning,itemId', 'itemId');
|
|
|
if (!empty($itemInfoData)) {
|
|
|
$myShop = $this->shop;
|