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