From 63a44ddf0bae6a39eb61a590a0f8d80658939a7c Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Wed, 7 Jan 2026 18:23:26 +0800 Subject: [PATCH] =?UTF-8?q?=E7=83=AD=E6=B8=B8=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=85=85=E5=80=BC=E6=B4=BB=E5=8A=A8ID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/service/game/HotGameServiceImpl.java | 2 +- .../impl/UserActivityRechargeServiceImpl.java | 15 ++++++++++++++- 2 files changed, 15 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 ba6cf4f3..c7a64bef 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 @@ -103,7 +103,7 @@ public class HotGameServiceImpl implements HotGameService { @Value("${red-circle.game-rank.endTime}") private String endTime; - private static final Long VIP_ACTIVITY_ID = 2005571533988298753L; + private static final Long VIP_ACTIVITY_ID = 1235571533988298753L; private static final String VIP_LEVEL_CACHE_KEY = "GAME:VIP:LEVEL:"; @Override diff --git a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/service/activity/impl/UserActivityRechargeServiceImpl.java b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/service/activity/impl/UserActivityRechargeServiceImpl.java index 51c8a741..41aa2326 100644 --- a/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/service/activity/impl/UserActivityRechargeServiceImpl.java +++ b/rc-service/rc-service-other/other-infrastructure/src/main/java/com/red/circle/other/infra/database/rds/service/activity/impl/UserActivityRechargeServiceImpl.java @@ -23,10 +23,15 @@ public class UserActivityRechargeServiceImpl implements UserActivityRechargeServ private final UserActivityRechargeDAO userActivityRechargeDAO; /** - * 固定活动ID + * 2026新年抽奖活动 */ private static final Long FIXED_ACTIVITY_ID = 2005571533988298753L; + /** + * 热游 用户VIP等级 固定id + */ + private static final Long VIP_ACTIVITY_ID = 1235571533988298753L; + @Override public void recordRecharge(Long userId, BigDecimal amount, MonthlyRechargeType type) { LocalDate today = ZonedDateTimeAsiaRiyadhUtils.now().toLocalDate(); @@ -40,6 +45,14 @@ public class UserActivityRechargeServiceImpl implements UserActivityRechargeServ amount ); + userActivityRechargeDAO.incrAmount( + userId, + VIP_ACTIVITY_ID, + rechargeDate, + type.name(), + amount + ); + log.info("记录用户活动充值, userId:{}, amount:{}, type:{}, date:{}, result:{}", userId, amount, type.name(), rechargeDate, result); }