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

修改认证机构

... ... @@ -468,11 +468,17 @@ class Attestation extends Api
->where($where['city'])
->select();
if(empty($city)){
$city = Db::name('government')
$province = Db::name('government')
->where($where['province'])
->select();
if(empty($city)){
if(empty($province)){
$this->success('暂无机构');
}else{
foreach ($province as $v){
$res['id'] = $v['id'];
$res['institution'] = $v['address'];
}
$this->success('success',$res);
}
}else{
foreach ($city as $v){
... ...