shish 10 месяцев назад
Родитель
Сommit
4512064aa0
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      app-mall/controllers/ItemController.php

+ 3 - 0
app-mall/controllers/ItemController.php

@@ -153,7 +153,10 @@ class ItemController extends BaseController
             $where['status'] = $status;
         }
         $where['delStatus'] = $delStatus;
+        //商城端没有隐藏
         $where['frontHide'] = 0;
+        //零售端没有隐藏
+        $where['frontUse'] = 0;
         $level = 0;
         $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], "*");
         $itemInfoData = ProductClass::groupProductInfo($itemInfoData, $level);