소스 검색

fix flavor display

zhangdehua 11 달 전
부모
커밋
73314601c5
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      app/index/controller/Index.php

+ 2 - 3
app/index/controller/Index.php

@@ -37,9 +37,8 @@ class Index extends Controller
             $newArrival = $model->getList(['listType' => 'on_sale'], 4)->toArray()['data'];
             $bestseller = $model->getList(['sortType' => 'sales'], 4)->toArray()['data'];
 
-            $superDeals = $model->getList(['categoryId' => '10002',], 8)->toArray()['data'];
-            //dd($superDeals);
-            //return $this->renderSuccess(compact('bestseller'));
+            //$superDeals = $model->getList(['categoryId' => '10002',], 8)->toArray()['data'];
+            $superDeals = $bestseller;
 
             $newGoodsId = array_column($newArrival, 'goods_id');
             $bestGoodsId = array_column($bestseller, 'goods_id');