pull/5/head
wanghousheng 4 months ago
parent 62413fbe06
commit f1bf660a75
  1. 2
      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');

Loading…
Cancel
Save