正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -201,7 +201,7 @@ class IndexController extends WeChatBaseController | @@ -201,7 +201,7 @@ class IndexController extends WeChatBaseController | ||
201 | $this -> assign('data_goods',$data_goods); | 201 | $this -> assign('data_goods',$data_goods); |
202 | //推荐新品 | 202 | //推荐新品 |
203 | if($limit_num != 0){ | 203 | if($limit_num != 0){ |
204 | - $data_goods_recommend_new = Db::name('goods') -> alias('a') -> field('a.*,b.name') -> join('classification b','a.classify_id = b.id','LEFT') -> where("recommend_new=1 and is_out = 1 and type = 1") -> limit($limit_num) -> select() -> toArray(); | 204 | + $data_goods_recommend_new = Db::name('goods') -> alias('a') -> field('a.*,b.name') -> join('classification b','a.classify_id = b.id','LEFT') -> where("recommend_new=1 and is_out = 1 and type = 1") -> limit(0) -> select() -> toArray(); |
205 | }else{ | 205 | }else{ |
206 | $data_goods_recommend_new = null; | 206 | $data_goods_recommend_new = null; |
207 | } | 207 | } |
-
请 注册 或 登录 后发表评论