From ba7b0b87794ae92bb348e23c081979ac14230098 Mon Sep 17 00:00:00 2001 From: Gary Date: Mon, 22 Jan 2024 16:22:27 +0800 Subject: [PATCH] 1.fix user update 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 9165481..1284b74 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 @@ -301,7 +301,7 @@ public class UserInfoService { user.setLastLoginIp(userInfo.getLastLoginIp()); } user.setLastLoginTime(new Date()); - userInfoDao.save(userInfo); + userInfoDao.save(user); return jwtUtil.createJWT(user.getId(),user.getNickName(),Constants.TOKEN_ROLE_APP_USER); }