From 3d350ba6916ff7146be8857effbc131c7e39be66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E8=89=AF=28004796=29?= Date: Sun, 4 Feb 2024 15:57:35 +0800 Subject: [PATCH] 123 --- .../main/java/com/ruoyi/cai/mq/handle/LoginNotifyHandle.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ruoyi-cai/src/main/java/com/ruoyi/cai/mq/handle/LoginNotifyHandle.java b/ruoyi-cai/src/main/java/com/ruoyi/cai/mq/handle/LoginNotifyHandle.java index 3ac80283..2838b3f8 100644 --- a/ruoyi-cai/src/main/java/com/ruoyi/cai/mq/handle/LoginNotifyHandle.java +++ b/ruoyi-cai/src/main/java/com/ruoyi/cai/mq/handle/LoginNotifyHandle.java @@ -83,12 +83,14 @@ public class LoginNotifyHandle implements IHandle { break; } } + }else{ + log.info("开启了隐私模式或者不是男的上线 user={}",JSON.toJSONString(user)); } } private void updateUserInfoSB(Long userId, String ip,String imei) { String address = AddressUtils.getRealAddressByIP(ip); - UserInfo userInfo = userInfoService.getById(userId); + UserInfo userInfo = userInfoService.getByUserId(userId); UserInfo update = new UserInfo(); update.setUserId(userId); update.setLoginCount(userInfo.getLoginCount()==null?0:userInfo.getLoginCount()+1);