查区县公司

This commit is contained in:
chenbo 2024-02-23 18:12:26 +08:00
parent eb987e1086
commit 28f8330db8

@ -367,7 +367,7 @@ class CompanyController extends BaseApiController
}
if(!empty($area)) {
$company= Company::where(['company_type'=>15, 'area'=>$area])->findOrEmpty();
if($company){
if(!$company->isEmpty()){
return $this->success('ok',['title'=>$company['company_name'],'organization_code'=>$company['organization_code']]);
}else{
return $this->fail('当前区域无供投公司');