From f1bf660a75b38852e9977b1c92eb4f4a74893c64 Mon Sep 17 00:00:00 2001 From: wanghousheng Date: Thu, 18 Jul 2024 14:23:49 +0800 Subject: [PATCH] 1 --- app/api/controller/Wholesaler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/controller/Wholesaler.php b/app/api/controller/Wholesaler.php index 5edc9773..d28eaded 100644 --- a/app/api/controller/Wholesaler.php +++ b/app/api/controller/Wholesaler.php @@ -123,7 +123,7 @@ class Wholesaler extends Controller if ($model->where(['card_no' => $card_no])->exists()) { return $this->renderError('该身份证号已存在'); } - if ($model->where(['business' => $business])->exists()) { + if ($model->where(['credit_code' => $credit_code])->exists()) { return $this->renderError('营业执照已存在'); } $data = compact('company_name', 'credit_code', 'city_id', 'province_id', 'door_img_id', 'business', 'card_no', 'avatar_id');