From 445fa1e7f64c762f1b899ed1057307ff91acfeca Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Tue, 17 Mar 2026 16:30:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=83=AD=E6=B8=B8vipLevel=20=E6=AF=8F=E6=9C=88?= =?UTF-8?q?1-7=E5=8F=B7=EF=BC=8C16-22=E5=8F=B7=20=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E8=BF=94=E5=9B=9Ev0?= 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, 4 insertions(+), 2 deletions(-) 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 fb497da5..97253d9e 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 @@ -141,8 +141,10 @@ 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)) { + + // 【新增】检查是否为每月的 1-7号 或 16-22号 + int dayOfMonth = now.getDayOfMonth(); + if ((dayOfMonth >= 1 && dayOfMonth <= 7) || (dayOfMonth >= 16 && dayOfMonth <= 22)) { return 0; }