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);