签到发送奖励和券问题处理
This commit is contained in:
parent
8ed2a132c2
commit
4fd156ba23
@ -149,8 +149,7 @@ public class SignCheckInExe {
|
||||
List<PropsActivityRewardConfig> configs = propsActivityRewardConfigService.listByGroupId(resourceGroupId);
|
||||
ResponseAssert.notEmpty(CommonErrorCode.NOT_FOUND_MAPPING_INFO, configs);
|
||||
|
||||
PropsActivityRewardConfig config = configs.get(0);
|
||||
|
||||
configs.forEach(config -> {
|
||||
propsSendCommon.send(new PrizeDescribeRewardCmd()
|
||||
.setTrackId(config.getGroupId())
|
||||
.setAcceptUserId(userId)
|
||||
@ -163,6 +162,7 @@ public class SignCheckInExe {
|
||||
.setContent(config.getContent())
|
||||
.setQuantity(config.getQuantity())))
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
@ -174,15 +174,13 @@ public class SignCheckInExe {
|
||||
}
|
||||
|
||||
try {
|
||||
for (int i = 0; i < config.getLotteryTicketCount(); i++) {
|
||||
Long ticketId = lotteryTicketClient.addTicket(
|
||||
lotteryTicketClient.addTicket(
|
||||
userId,
|
||||
FIXED_ACTIVITY_ID,
|
||||
config.getLotteryTicketCount(),
|
||||
"SIGN_IN",
|
||||
"SIGN_IN_DAY_" + config.getDayIndex()
|
||||
).getBody();
|
||||
}
|
||||
);
|
||||
} catch (Exception e) {
|
||||
log.error("发放签到抽奖券失败, userId={}, dayIndex={}, count={}",
|
||||
userId, config.getDayIndex(), config.getLotteryTicketCount(), e);
|
||||
|
||||
@ -152,8 +152,7 @@ public class SupplementCheckInExe {
|
||||
List<PropsActivityRewardConfig> configs = propsActivityRewardConfigService.listByGroupId(resourceGroupId);
|
||||
ResponseAssert.notEmpty(CommonErrorCode.NOT_FOUND_MAPPING_INFO, configs);
|
||||
|
||||
PropsActivityRewardConfig config = configs.get(0);
|
||||
|
||||
configs.forEach(config -> {
|
||||
propsSendCommon.send(new PrizeDescribeRewardCmd()
|
||||
.setTrackId(config.getGroupId())
|
||||
.setAcceptUserId(userId)
|
||||
@ -166,6 +165,7 @@ public class SupplementCheckInExe {
|
||||
.setContent(config.getContent())
|
||||
.setQuantity(config.getQuantity())))
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -178,15 +178,13 @@ public class SupplementCheckInExe {
|
||||
}
|
||||
|
||||
try {
|
||||
for (int i = 0; i < config.getLotteryTicketCount(); i++) {
|
||||
Long ticketId = lotteryTicketClient.addTicket(
|
||||
lotteryTicketClient.addTicket(
|
||||
userId,
|
||||
FIXED_ACTIVITY_ID,
|
||||
config.getLotteryTicketCount(),
|
||||
"SIGN_IN",
|
||||
"SIGN_IN_DAY_" + config.getDayIndex()
|
||||
).getBody();
|
||||
}
|
||||
);
|
||||
} catch (Exception e) {
|
||||
log.error("发放签到抽奖券失败, userId={}, dayIndex={}, count={}",
|
||||
userId, config.getDayIndex(), config.getLotteryTicketCount(), e);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user