incrAzizi处理
This commit is contained in:
parent
ec14ac9fd7
commit
0c2bd92fb4
@ -45,9 +45,11 @@ public class CheckInExe {
|
|||||||
private final PropsSendCommon propsSendCommon;
|
private final PropsSendCommon propsSendCommon;
|
||||||
|
|
||||||
public Integer execute(CheckInRewardCmd cmd) {
|
public Integer execute(CheckInRewardCmd cmd) {
|
||||||
|
boolean inrAzizi = false;
|
||||||
if (StringUtils.isBlank(cmd.getDailyKey())) {
|
if (StringUtils.isBlank(cmd.getDailyKey())) {
|
||||||
cmd.setDailyKey(CheckInKeys.DAILY_CHECK_IN.getKey("DAILY_CHECK_IN_" + cmd.getReqUserId() + ZonedDateTimeAsiaRiyadhUtils.nowDateToInt()));
|
cmd.setDailyKey(CheckInKeys.DAILY_CHECK_IN.getKey("DAILY_CHECK_IN_" + cmd.getReqUserId() + ZonedDateTimeAsiaRiyadhUtils.nowDateToInt()));
|
||||||
} else {
|
} else {
|
||||||
|
inrAzizi = true;
|
||||||
cmd.setDailyKey(CheckInKeys.AZIZI_CHECK_IN.getKey("AZIZI_CHECK_IN" + cmd.getReqUserId() + ZonedDateTimeAsiaRiyadhUtils.nowDateToInt()));
|
cmd.setDailyKey(CheckInKeys.AZIZI_CHECK_IN.getKey("AZIZI_CHECK_IN" + cmd.getReqUserId() + ZonedDateTimeAsiaRiyadhUtils.nowDateToInt()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -71,7 +73,7 @@ public class CheckInExe {
|
|||||||
|
|
||||||
// 累计打卡天数
|
// 累计打卡天数
|
||||||
Long inDays;
|
Long inDays;
|
||||||
if (StringUtils.isBlank(cmd.getDailyKey())) {
|
if (!inrAzizi) {
|
||||||
inDays = checkInCacheService.incrCheckInDays(CheckInKeys.SEVEN_CHECK_IN.getKey(cmd.getReqUserId()), getExpiredTime(cmd));
|
inDays = checkInCacheService.incrCheckInDays(CheckInKeys.SEVEN_CHECK_IN.getKey(cmd.getReqUserId()), getExpiredTime(cmd));
|
||||||
} else {
|
} else {
|
||||||
inDays = checkInCacheService.incrCheckInDays(CheckInKeys.AZIZI_SEVEN_CHECK_IN.getKey(cmd.getReqUserId()), getExpiredTime(cmd));
|
inDays = checkInCacheService.incrCheckInDays(CheckInKeys.AZIZI_SEVEN_CHECK_IN.getKey(cmd.getReqUserId()), getExpiredTime(cmd));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user