Commit aaa1111b by 杨树贤

修复

parent 6e16ee55
......@@ -385,6 +385,9 @@ class SupplierApiController extends Controller
if (!$company) {
$this->response(-2, '公司未进行工商注册');
}
if ($company && $company['regStatus'] == '注销') {
$this->response(-1, '该公司已经注销,不能进行录入');
}
} else {
$this->response(-2, '供应商跳过天眼查校验');
}
......
......@@ -45,6 +45,7 @@ class CompanyService
'phone' => $companyInfo['tyc_info']['phone_number'],
'establishment_time' => $companyInfo['establishment_time'] ? date('Y-m-d',
$companyInfo['establishment_time']) : '',
'regStatus' => !empty($companyInfo['regStatus'])?$companyInfo['regStatus']:'',
];
}
$unitedCompanyInfo['company'] = $company;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment