|
|
|
@ -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'); |
|
|
|
|