测试:bug处理
This commit is contained in:
@@ -321,7 +321,8 @@ class UserData extends Model
|
||||
return ['code' => 0, 'msg' => '该身份证实名已达上限!','data' =>null];
|
||||
}
|
||||
$mobile_count = db::name('user')->where(['mobile' => $user_mobile,'status'=>1])->count('id');
|
||||
if($mobile_count >= 2){
|
||||
$user_auth_count = db::name('user_auth')->where(['mobile' => $user_mobile,'is_real' => 1])->count();
|
||||
if($mobile_count >= 2 && $user_auth_count > 0){
|
||||
return ['code' => 0, 'msg' => '该手机号已绑定多个账号!请勿重复注册!','data' =>null];
|
||||
}
|
||||
//查询是否已经提交过数据了
|
||||
|
||||
Reference in New Issue
Block a user