Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
chenbo 2024-01-02 11:06:22 +08:00
commit 3bcb7884db

View File

@ -829,12 +829,12 @@ class IndexController extends BaseApiController
public function getCompanyBankInfo()
{
$parmas = $this->request->param();
$company = Db::query("select company_name,qualification from la_company where company_type=:company_type and FIND_IN_SET(:street,responsible_area)", ['company_type' => 41,'street'=>$parmas['street_code']], true)[0];
$company = Db::query("select company_name,qualification from la_company where company_type=:company_type and FIND_IN_SET(:street,responsible_area)", ['company_type' => 41,'street'=>$parmas['street_code']], true);
if (empty($company)) {
return $this->success('成功', ['corporate_account'=> '22170201040004168', 'corporate_bank'=> '中国农业银行股份有限公司泸州石洞支行', 'company_name' => '泸州里海农业科技有限公司', 'corporate_bank_address'=> '泸州市龙马潭区张家祠东路竹林馨居东侧约60米']);
}
$company=$company[0];
$company['qualification'] = json_decode($company['qualification'], true);
if (!empty($company['qualification']['corporate_account']) && !empty($company['qualification']['corporate_bank'])) {