作者 潘浩文
1 个管道 的构建 通过 耗费 0 秒

测试反馈修改

@@ -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']);