过往活动固定ID去除, 新增开斋节活动ID
This commit is contained in:
parent
5fd5353382
commit
0c1ee4b252
@ -51,9 +51,6 @@ public class SpinsTaskRestController {
|
||||
*/
|
||||
@PostMapping("/receive/reward")
|
||||
public SpinsTaskRewardCO receiveReward(@Validated @RequestBody SpinsTaskReceiveRewardCmd cmd) {
|
||||
if (cmd.getActivityId() == null) {
|
||||
cmd.setActivityId(2005571533988298753L);
|
||||
}
|
||||
return spinsTaskService.receiveTaskReward(cmd);
|
||||
}
|
||||
}
|
||||
|
||||
@ -32,17 +32,9 @@ public class ActivityRechargeRankExe {
|
||||
private final UserProfileGateway userProfileGateway;
|
||||
private final UserProfileAppConvertor userProfileAppConvertor;
|
||||
|
||||
/**
|
||||
* 2026春节游戏礼物活动
|
||||
*/
|
||||
private static final Long FIXED_ACTIVITY_ID = 2007771533988204877L;
|
||||
|
||||
public ActivityRechargeRankCO execute(ActivityRechargeRankCmd cmd) {
|
||||
Page<ActivityRechargeRankDTO> page = new Page<>(cmd.getPageNo(), cmd.getPageSize());
|
||||
String rechargeType = null;
|
||||
if (FIXED_ACTIVITY_ID.equals(cmd.getActivityId())) {
|
||||
rechargeType = MonthlyRechargeType.LUCKY_WIN.name();
|
||||
}
|
||||
IPage<ActivityRechargeRankDTO> rankPage = userActivityRechargeDAO.pageRechargeRank(page, cmd.getActivityId(), rechargeType);
|
||||
|
||||
ActivityRechargeRankCO result = new ActivityRechargeRankCO();
|
||||
@ -79,7 +71,7 @@ public class ActivityRechargeRankExe {
|
||||
.setSpecialAccount(Optional.ofNullable(userProfile.getOwnSpecialId())
|
||||
.map(OwnSpecialIdDTO::getAccount)
|
||||
.orElse(null))
|
||||
.setAmount(FIXED_ACTIVITY_ID.equals(cmd.getActivityId()) ? NumUtils.formatBigDecimal(dto.getTotalAmount()) : "***"));
|
||||
.setAmount("***"));
|
||||
}
|
||||
|
||||
result.setTopList(topList);
|
||||
|
||||
@ -210,7 +210,7 @@ public class GiftCountStrategy implements GiftStrategy {
|
||||
processFamily(runningWater);
|
||||
|
||||
// Spins 送礼物任务
|
||||
handleSpinsGiftTask(runningWater);
|
||||
// handleSpinsGiftTask(runningWater);
|
||||
|
||||
// 房间金币大放送
|
||||
handleRoomDailyTask(runningWater, roomProfile);
|
||||
|
||||
@ -26,7 +26,7 @@ import java.util.List;
|
||||
@RequiredArgsConstructor
|
||||
public class SpringFestivalRechargeRewardTask {
|
||||
|
||||
private static final Long ACTIVITY_ID = 2007771533988204877L;
|
||||
private static final Long ACTIVITY_ID = -1L;
|
||||
private static final String RECHARGE_TYPE = "LUCKY_WIN";
|
||||
|
||||
// TOP1~TOP3 各自独立奖励组,TOP4~10 共用同一个
|
||||
|
||||
@ -27,7 +27,7 @@ public class ActivityRechargeTicketService {
|
||||
/**
|
||||
* 2026春节游戏礼物活动
|
||||
*/
|
||||
private static final Long FIXED_ACTIVITY_ID = 2007771533988204877L;
|
||||
private static final Long FIXED_ACTIVITY_ID = -1L;
|
||||
|
||||
/**
|
||||
* 每100000金币发放1张抽奖券
|
||||
|
||||
@ -23,19 +23,14 @@ public class UserActivityRechargeServiceImpl implements UserActivityRechargeServ
|
||||
private final UserActivityRechargeDAO userActivityRechargeDAO;
|
||||
|
||||
/**
|
||||
* 2026春节充值活动
|
||||
*/
|
||||
private static final Long FIXED_ACTIVITY_ID = 2007771533988204888L;
|
||||
|
||||
/**
|
||||
* 2026春节抽奖
|
||||
* 2026斋月抽奖
|
||||
*/
|
||||
private static final Long FIXED_ACTIVITY_ID2 = 2006671533988298666L;
|
||||
|
||||
/**
|
||||
* 2026斋月抽奖
|
||||
* 2026开斋节充值活动
|
||||
*/
|
||||
private static final Long FIXED_ACTIVITY_ID3 = 2007771533988204877L;
|
||||
private static final Long FIXED_ACTIVITY_ID = 2006671533912581569L;
|
||||
|
||||
/**
|
||||
* 热游 用户VIP等级 固定id
|
||||
@ -47,25 +42,18 @@ public class UserActivityRechargeServiceImpl implements UserActivityRechargeServ
|
||||
LocalDate today = ZonedDateTimeAsiaRiyadhUtils.now().toLocalDate();
|
||||
String rechargeDate = today.toString();
|
||||
|
||||
int result = userActivityRechargeDAO.incrAmount(
|
||||
userId,
|
||||
FIXED_ACTIVITY_ID,
|
||||
rechargeDate,
|
||||
type.name(),
|
||||
amount
|
||||
);
|
||||
|
||||
userActivityRechargeDAO.incrAmount(
|
||||
userId,
|
||||
FIXED_ACTIVITY_ID2,
|
||||
FIXED_ACTIVITY_ID,
|
||||
rechargeDate,
|
||||
type.name(),
|
||||
amount
|
||||
);
|
||||
|
||||
|
||||
userActivityRechargeDAO.incrAmount(
|
||||
userId,
|
||||
FIXED_ACTIVITY_ID3,
|
||||
FIXED_ACTIVITY_ID2,
|
||||
rechargeDate,
|
||||
type.name(),
|
||||
amount
|
||||
@ -78,9 +66,6 @@ public class UserActivityRechargeServiceImpl implements UserActivityRechargeServ
|
||||
type.name(),
|
||||
amount
|
||||
);
|
||||
|
||||
log.info("记录用户活动充值, userId:{}, amount:{}, type:{}, date:{}, result:{}",
|
||||
userId, amount, type.name(), rechargeDate, result);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@ -32,7 +32,7 @@ public class RedisTest {
|
||||
private UserActivityRechargeDAO userActivityRechargeDAO;
|
||||
|
||||
// 常量定义(与业务代码保持一致)
|
||||
private static final Long FIXED_ACTIVITY_ID = 2007771533988204877L;
|
||||
private static final Long FIXED_ACTIVITY_ID = -1L;
|
||||
private static final long TICKET_THRESHOLD = 100000L; // 每10000发一张券,请根据实际值修改
|
||||
|
||||
@Test
|
||||
@ -65,7 +65,7 @@ public class RedisTest {
|
||||
@Test
|
||||
public void testRedis2(){
|
||||
// 春节活动 已结束
|
||||
activityRechargeTicketService.accumulatedRechargeAndAddTicket(1957345312961527809L, 80000L, MonthlyRechargeType.UNDEFINED);
|
||||
// activityRechargeTicketService.accumulatedRechargeAndAddTicket(1957345312961527809L, 80000L, MonthlyRechargeType.UNDEFINED);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user