This commit is contained in:
weiz 2024-05-21 16:49:17 +08:00
parent 3631046506
commit e7ee2e0884

View File

@ -27,6 +27,8 @@ class ShopLogic extends BaseLogic
}
$userInfo = UserTokenService::setToken($user['user_id'], 6);
if($jg_register_id){
//清除其他账号绑定的相同的极光id
Db::name('user_auth_shop')->where('jg_register_id',$jg_register_id)->update(['jg_register_id'=>'']);
Db::name('user_auth_shop')->where('id',$user['id'])->update(['jg_register_id'=>$jg_register_id]);
}
return $userInfo['token'];