...
|
...
|
@@ -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){
|
...
|
...
|
|