diff --git a/app/Console/Commands/UpdateCompany.php b/app/Console/Commands/UpdateCompany.php index 90e00b3..fcdc305 100755 --- a/app/Console/Commands/UpdateCompany.php +++ b/app/Console/Commands/UpdateCompany.php @@ -70,6 +70,11 @@ class UpdateCompany extends Command $this->info($user->company_name . '公司不存在'); continue; } + // 如果$result['enterpriseName']存在数字,跳过 + if (preg_match('/\d/', $result['enterpriseName'])) { + $this->info($user->company_name . '公司名称包含数字,跳过'); + continue; + } $where = ['company_name' => $result['enterpriseName']]; $data = [ 'company_address' => $result['address'],