更新 app/api/controller/CompanyController.php
修复code
This commit is contained in:
parent
75bbfedc89
commit
4dec31a0d9
@ -354,7 +354,7 @@ class CompanyController extends BaseApiController
|
|||||||
$street=$this->request->param('street_code');
|
$street=$this->request->param('street_code');
|
||||||
$company = Company::where('street', $street)->where('company_type',41)->find();
|
$company = Company::where('street', $street)->where('company_type',41)->find();
|
||||||
if($company){
|
if($company){
|
||||||
return $this->success('ok',['title'=>$company['company_name']]);
|
return $this->success('ok',['title'=>$company['company_name'],'organization_code'=>$company['organization_code']]);
|
||||||
}else{
|
}else{
|
||||||
return $this->fail('没有镇管理公司');
|
return $this->fail('没有镇管理公司');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user