This commit is contained in:
张良(004796)
2024-02-04 15:57:35 +08:00
parent d946b45ab1
commit 3d350ba691

View File

@@ -83,12 +83,14 @@ public class LoginNotifyHandle implements IHandle {
break; break;
} }
} }
}else{
log.info("开启了隐私模式或者不是男的上线 user={}",JSON.toJSONString(user));
} }
} }
private void updateUserInfoSB(Long userId, String ip,String imei) { private void updateUserInfoSB(Long userId, String ip,String imei) {
String address = AddressUtils.getRealAddressByIP(ip); String address = AddressUtils.getRealAddressByIP(ip);
UserInfo userInfo = userInfoService.getById(userId); UserInfo userInfo = userInfoService.getByUserId(userId);
UserInfo update = new UserInfo(); UserInfo update = new UserInfo();
update.setUserId(userId); update.setUserId(userId);
update.setLoginCount(userInfo.getLoginCount()==null?0:userInfo.getLoginCount()+1); update.setLoginCount(userInfo.getLoginCount()==null?0:userInfo.getLoginCount()+1);