...
|
...
|
@@ -35,7 +35,7 @@ class ActiveController extends WeChatBaseController |
|
|
$where['status']=1;
|
|
|
$status=$this->request->param('status');
|
|
|
$where['category_id']=$status;
|
|
|
$data=Db::name('active')->where($where)->select()->toArray();
|
|
|
$data=Db::name('active')->where($where)->order('is_top','desc')->select()->toArray();
|
|
|
foreach ($data as $k => $v) {
|
|
|
$data[$k]['url']=url('portal/active/activeDetail',array('id'=>$data[$k]['id']));
|
|
|
$data[$k]['image'] = cmf_get_image_preview_url($data[$k]['thumbnail']);
|
...
|
...
|
|