作者 郭盛
1 个管道 的构建 通过 耗费 1 秒

修改范围提交审核

... ... @@ -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)
... ...
... ... @@ -523,12 +523,12 @@ class Store extends Api
if(empty($type_id)){
$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)
... ... @@ -541,13 +541,13 @@ class Store 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('type_id',$type_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)
->where('type_id',$type_id)
->order('createtime desc')
... ...