From 3089fabac01f0e619b05e5874d297620fba581dc Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Thu, 25 Dec 2025 20:01:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=9C=A8=E7=BA=BF=E6=97=B6?= =?UTF-8?q?=E9=95=BF=E9=94=81=E4=B8=BA58=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../red/circle/other/infra/common/user/OnlineStatusCommon.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/common/user/OnlineStatusCommon.java b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/common/user/OnlineStatusCommon.java index f853a6fb..4738b28f 100644 --- a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/common/user/OnlineStatusCommon.java +++ b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/common/user/OnlineStatusCommon.java @@ -69,7 +69,8 @@ public class OnlineStatusCommon { } private void onlineStatusMessage(OnlineStatusUploadCmd cmd) { - if (redisService.setIfAbsent("OLU:" + cmd.getUserId(), 1, TimeUnit.MINUTES)) { + //客户端每60秒发送一次, 冗余网络延迟等问题 设置为50秒 + if (redisService.setIfAbsent("OLU:" + cmd.getUserId(), 50, TimeUnit.SECONDS)) { userMqMessageService.onlineStatus(new UserOnlineStatusEvent() .setUserId(cmd.getUserId()) .setSysOrigin(SysOriginPlatformEnum.valueOf(cmd.getSysOrigin()))