From 5fa83d0bd211826e2b9f2b75c7010c7442614fdd Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Thu, 5 Mar 2026 18:04:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=88=90=E5=91=98=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E5=88=9B=E5=BB=BA=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../red/circle/other/app/command/room/RoomEnterCmdExe.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/room/RoomEnterCmdExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/room/RoomEnterCmdExe.java index 2d9c112a..3c6527b2 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/room/RoomEnterCmdExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/room/RoomEnterCmdExe.java @@ -57,6 +57,7 @@ import com.red.circle.tool.core.sequence.IdWorkerUtils; import com.red.circle.tool.core.text.StringUtils; import java.sql.Timestamp; +import java.time.LocalDate; import java.util.*; import java.util.concurrent.*; import java.util.concurrent.atomic.AtomicReference; @@ -173,6 +174,11 @@ public class RoomEnterCmdExe { if (Objects.isNull(roomMember)) { return; } + String createDate = roomMember.getCreateTime().toLocalDateTime().toLocalDate().toString(); + String todayDate = ZonedDateTimeAsiaRiyadhUtils.now().toLocalDate().toString(); + if (!createDate.equals(todayDate)) { + return; + } try { // Redis 去重:同一用户当天进入同一房间只计一次