作者 sgj
1 个管道 的构建 失败 耗费 0 秒

后台完善

... ... @@ -342,7 +342,8 @@ class SecondController extends RestBaseController
$city=input('city');
$Team=new TeamModel();
$map['status']=2;
$team=$Team->where('city',$city)->where($map)->select();
$team=$Team->where('city',$city)->where($map)->select()->toArray();
if (!empty($team)){
foreach ($team as $k=>$v) {
$return['id']=$v['id'];
... ... @@ -352,6 +353,8 @@ class SecondController extends RestBaseController
$return['people_num']=$v['people_num'];
$return['pic']=cmf_get_image_url($return['pic']);
}
}else{
$this->error('暂无数据');
}
$this->success('',$return);
}
... ...