正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -35,7 +35,7 @@ class ActiveController extends WeChatBaseController | @@ -35,7 +35,7 @@ class ActiveController extends WeChatBaseController | ||
35 | $where['status']=1; | 35 | $where['status']=1; |
36 | $status=$this->request->param('status'); | 36 | $status=$this->request->param('status'); |
37 | $where['category_id']=$status; | 37 | $where['category_id']=$status; |
38 | - $data=Db::name('active')->where($where)->select()->toArray(); | 38 | + $data=Db::name('active')->where($where)->order('is_top','desc')->select()->toArray(); |
39 | foreach ($data as $k => $v) { | 39 | foreach ($data as $k => $v) { |
40 | $data[$k]['url']=url('portal/active/activeDetail',array('id'=>$data[$k]['id'])); | 40 | $data[$k]['url']=url('portal/active/activeDetail',array('id'=>$data[$k]['id'])); |
41 | $data[$k]['image'] = cmf_get_image_preview_url($data[$k]['thumbnail']); | 41 | $data[$k]['image'] = cmf_get_image_preview_url($data[$k]['thumbnail']); |
-
请 注册 或 登录 后发表评论