热游 新增用户充值活动ID
This commit is contained in:
parent
e61c02a488
commit
63a44ddf0b
@ -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
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user