feat(LoginLogic): 根据手机号判断用户是否为新用户
This commit is contained in:
parent
891865e98f
commit
2dd50089e8
@ -451,10 +451,10 @@ class LoginLogic extends BaseLogic
|
||||
UserAuth::where(['user_id'=>$userId])->update(['user_id'=>$find['id']]);
|
||||
}
|
||||
}
|
||||
$data=[
|
||||
'mobile'=>$params['mobile'],
|
||||
'is_new_user' => YesNoEnum::NO
|
||||
];
|
||||
$data=['is_new_user' => YesNoEnum::NO];
|
||||
if(isset($params['mobile']) && $params['mobile']!=''){
|
||||
$data['mobile']=$params['mobile'];
|
||||
}
|
||||
if(!empty($params['nickname'])){
|
||||
$data['nickname'] = $params['nickname'];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user