pull/5/head
wanghousheng 4 months ago
parent 4c9d0732f3
commit 81e8b7fba9
  1. 4
      app/api/controller/Wholesaler.php

@ -238,6 +238,10 @@ class Wholesaler extends Controller
if ($exists_id && $info->id != $exists_id) {
return $this->renderError('该身份证号已存在');
}
$exists_id = $model->where(['credit_code' => $credit_code])->value('id');
if ($exists_id && $info->id != $exists_id) {
return $this->renderError('营业执照已存在');
}
try {
CaptchaApi::checkSms($mobile_code, $mobile);
} catch (Exception $e) {

Loading…
Cancel
Save