From 2b8b8b70b1184965a7d4e2a26bd3b3da8bbf9a3d Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Mon, 3 Nov 2025 15:56:52 +0800 Subject: [PATCH] update --- app/Console/Commands/UpdateCompany.php | 5 +++++ 1 file changed, 5 insertions(+) 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'],