用户实名注册限制
邀请收益规则调整 新手任务领取限制 红包功能调整 元旦换肤
This commit is contained in:
@@ -283,7 +283,10 @@ class UserData extends Model
|
||||
}else{
|
||||
$is_real = false;
|
||||
}
|
||||
|
||||
$mobile_count = db::name('user')->where(['mobile' => $new_mobile,'status'=>1])->count('id');
|
||||
if($mobile_count>=2){
|
||||
return ['code' => 0, 'msg' => '该手机号已存在两个以上的账号!请使用其他手机号!','data' =>null];
|
||||
}
|
||||
if($is_real){
|
||||
//开启事务
|
||||
db::startTrans();
|
||||
@@ -314,9 +317,13 @@ class UserData extends Model
|
||||
return ['code' => 0, 'msg' => '请先绑定手机号','data' =>null];
|
||||
}
|
||||
$card_id_count = db::name('user_auth')->where(['card_id' => $id_card,'is_real' => 1])->count();
|
||||
if($card_id_count >= 3){
|
||||
if($card_id_count >= 2){
|
||||
return ['code' => 0, 'msg' => '该身份证实名已达上限!','data' =>null];
|
||||
}
|
||||
$mobile_count = db::name('user')->where(['mobile' => $user_mobile,'status'=>1])->count('id');
|
||||
if($mobile_count >= 2){
|
||||
return ['code' => 0, 'msg' => '该手机号已绑定多个账号!请勿重复注册!','data' =>null];
|
||||
}
|
||||
//查询是否已经提交过数据了
|
||||
$is_real = db::name('user_auth')->where(['card_id' => $id_card,'mobile' =>$user_mobile])->find();
|
||||
if($is_real){
|
||||
|
||||
Reference in New Issue
Block a user