diff --git a/luoo_user/src/main/java/com/luoo/user/service/UserInfoService.java b/luoo_user/src/main/java/com/luoo/user/service/UserInfoService.java index 8a8ffad..adb9536 100644 --- a/luoo_user/src/main/java/com/luoo/user/service/UserInfoService.java +++ b/luoo_user/src/main/java/com/luoo/user/service/UserInfoService.java @@ -210,6 +210,9 @@ public class UserInfoService { user.setLastUseDeviceBrand(userInfo.getLastUseDeviceBrand()); user.setLastLoginIp(userInfo.getLastLoginIp()); } + if (!UserStatusEnum.ENABLE.getStatus().equals(userInfo.getStatus())) { + return null; + } user.setLastLoginTime(new Date()); userInfoDao.save(user); return Constants.TOKEN_PREFIX