|
@@ -929,6 +929,12 @@ class User extends Api
|
|
|
if (empty($idCard)) {
|
|
|
throw new Exception('请输入身份证号');
|
|
|
}
|
|
|
+ $userAuthWhere['user_id'] = ['neq',$this->auth->id];
|
|
|
+ $userAuthWhere['idcard'] = $idCard;
|
|
|
+ $userAuth = model('UserAuth')->where($userAuthWhere)->find();
|
|
|
+ if (!empty($userAuth)) {
|
|
|
+ throw new Exception('该身份证号已被其他用户实名验证过');
|
|
|
+ }
|
|
|
/*$userService = new UserService();
|
|
|
$faceParams = [
|
|
|
'real_name' => $realName,
|