Kirin 3 years ago
parent
commit
46d7fa38d9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/api/controller/store/StoreProductController.php

+ 3 - 0
app/api/controller/store/StoreProductController.php

@@ -249,6 +249,9 @@ class StoreProductController
         } else if ($type == 6) {//TODO 促销单品
             $info['banner'] = sys_data('routine_home_benefit_banner') ?: [];//TODO 促销单品推荐图片
             $info['list'] = StoreProduct::getIntegralProduct('id,image,store_name,cate_id,price,ot_price,stock,unit_name,sort,max_use_integral', 0, 0, true, $page, $limit);//TODO 促销单品
+        } else if ($type == 7) {//TODO 促销单品
+            $info['banner'] = sys_data('routine_home_benefit_banner') ?: [];//TODO 促销单品推荐图片
+            $info['list'] = StoreProduct::getStoreProduct('id,image,store_name,cate_id,price,ot_price,stock,unit_name,sort,max_use_integral', 0, 0, true, $page, $limit);//TODO 促销单品
         }
         return app('json')->successful($info);
     }