修复 admin 退出时,判断 userType 不正确

This commit is contained in:
YunaiV 2022-06-11 23:28:50 +08:00
parent a8bf397bb0
commit 309ba2d3f1

View File

@ -229,7 +229,7 @@ public class AdminAuthServiceImpl implements AdminAuthService {
reqDTO.setTraceId(TracerUtils.getTraceId());
reqDTO.setUserId(userId);
reqDTO.setUserType(userType);
if (ObjectUtil.notEqual(getUserType(), userType)) {
if (ObjectUtil.equal(getUserType().getValue(), userType)) {
reqDTO.setUsername(getUsername(userId));
} else {
reqDTO.setUsername(memberService.getMemberUserMobile(userId));