...
|
...
|
@@ -104,13 +104,13 @@ class Index extends Api |
|
|
if(empty($type) || $type == 1){
|
|
|
$data['total_num'] = Db::name('application')
|
|
|
->field('id,image,name,createtime')
|
|
|
->where('city_id',$city_id)
|
|
|
// ->where('city_id',$city_id)
|
|
|
->where('status',1)
|
|
|
->where('is_choiceness',1)
|
|
|
->count();
|
|
|
$data['info'] = Db::name('application')
|
|
|
->field('id,image,name,createtime')
|
|
|
->where('city_id',$city_id)
|
|
|
// ->where('city_id',$city_id)
|
|
|
->where('status',1)
|
|
|
->where('is_choiceness',1)
|
|
|
->order('createtime desc')
|
...
|
...
|
@@ -123,12 +123,12 @@ class Index extends Api |
|
|
}else{
|
|
|
$data['total_num'] = Db::name('application')
|
|
|
->field('id,image,name,createtime')
|
|
|
->where('city_id',$city_id)
|
|
|
// ->where('city_id',$city_id)
|
|
|
->where('status',1)
|
|
|
->count();
|
|
|
$data['info'] = Db::name('application')
|
|
|
->field('id,image,name,createtime')
|
|
|
->where('city_id',$city_id)
|
|
|
// ->where('city_id',$city_id)
|
|
|
->where('status',1)
|
|
|
->order('createtime desc')
|
|
|
->page($page,$pageNum)
|
...
|
...
|
|