From 894311fb3116072571b357d7aaa8e97d6579a781 Mon Sep 17 00:00:00 2001 From: Gary Date: Tue, 5 Mar 2024 09:51:48 +0800 Subject: [PATCH] 1.fix user login bug --- .../src/main/java/com/luoo/user/service/UserInfoService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 adb9536..755075a 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,7 +210,7 @@ public class UserInfoService { user.setLastUseDeviceBrand(userInfo.getLastUseDeviceBrand()); user.setLastLoginIp(userInfo.getLastLoginIp()); } - if (!UserStatusEnum.ENABLE.getStatus().equals(userInfo.getStatus())) { + if (!UserStatusEnum.ENABLE.getStatus().equals(user.getStatus())) { return null; } user.setLastLoginTime(new Date());