修复管理后台的社交登录时,传入的用户类型不正确

This commit is contained in:
YunaiV 2022-04-16 00:19:54 +08:00
parent 1737714a22
commit 6471c8d586

View File

@ -194,7 +194,7 @@ public class AdminAuthServiceImpl implements AdminAuthService {
@Override @Override
public String socialLogin(AuthSocialLoginReqVO reqVO, String userIp, String userAgent) { public String socialLogin(AuthSocialLoginReqVO reqVO, String userIp, String userAgent) {
// 使用 code 授权码进行登录然后获得到绑定的用户编号 // 使用 code 授权码进行登录然后获得到绑定的用户编号
Long userId = socialUserService.getBindUserId(UserTypeEnum.MEMBER.getValue(), reqVO.getType(), Long userId = socialUserService.getBindUserId(UserTypeEnum.ADMIN.getValue(), reqVO.getType(),
reqVO.getCode(), reqVO.getState()); reqVO.getCode(), reqVO.getState());
if (userId == null) { if (userId == null) {
throw exception(AUTH_THIRD_LOGIN_NOT_BIND); throw exception(AUTH_THIRD_LOGIN_NOT_BIND);