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 去重:同一用户当天进入同一房间只计一次