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); }