From 530229a5fb243a44003dde152e5754784568b84a Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Mon, 16 Feb 2026 11:24:40 +0800 Subject: [PATCH] =?UTF-8?q?hot=20game=20=E6=9B=B4=E6=96=B07=E5=A4=A9?= =?UTF-8?q?=E6=89=80=E6=9C=89=E4=BA=BAv0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../circle/other/app/service/game/HotGameServiceImpl.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/service/game/HotGameServiceImpl.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/game/HotGameServiceImpl.java index 84fb1763..f07eaecf 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/game/HotGameServiceImpl.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/game/HotGameServiceImpl.java @@ -143,6 +143,12 @@ public class HotGameServiceImpl implements HotGameService { } public Integer getVipLevel(Long userId) { + LocalDateTime now = LocalDateTime.now(); + LocalDateTime endTime = LocalDateTime.parse("2026-02-23 00:00:00", DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")); + if (now.isBefore(endTime)) { + return 0; + } + try { String cacheKey = VIP_LEVEL_CACHE_KEY + userId; Object cachedLevel = redisService.redisTemplate().opsForValue().get(cacheKey);