incrAzizi处理

This commit is contained in:
tianfeng 2026-02-02 22:03:44 +08:00
parent ec14ac9fd7
commit 0c2bd92fb4

View File

@ -45,9 +45,11 @@ public class CheckInExe {
private final PropsSendCommon propsSendCommon;
public Integer execute(CheckInRewardCmd cmd) {
boolean inrAzizi = false;
if (StringUtils.isBlank(cmd.getDailyKey())) {
cmd.setDailyKey(CheckInKeys.DAILY_CHECK_IN.getKey("DAILY_CHECK_IN_" + cmd.getReqUserId() + ZonedDateTimeAsiaRiyadhUtils.nowDateToInt()));
} else {
inrAzizi = true;
cmd.setDailyKey(CheckInKeys.AZIZI_CHECK_IN.getKey("AZIZI_CHECK_IN" + cmd.getReqUserId() + ZonedDateTimeAsiaRiyadhUtils.nowDateToInt()));
}
@ -71,7 +73,7 @@ public class CheckInExe {
// 累计打卡天数
Long inDays;
if (StringUtils.isBlank(cmd.getDailyKey())) {
if (!inrAzizi) {
inDays = checkInCacheService.incrCheckInDays(CheckInKeys.SEVEN_CHECK_IN.getKey(cmd.getReqUserId()), getExpiredTime(cmd));
} else {
inDays = checkInCacheService.incrCheckInDays(CheckInKeys.AZIZI_SEVEN_CHECK_IN.getKey(cmd.getReqUserId()), getExpiredTime(cmd));