签到接口 临时处理为+3天

This commit is contained in:
tianfeng 2026-01-19 21:32:47 +08:00
parent 44d7941e50
commit 6a2af57fd3
3 changed files with 6 additions and 0 deletions

View File

@ -59,6 +59,8 @@ public class SignCheckInExe {
int targetDayIndex = saudiToday.getDayOfWeek().getValue();
targetDayIndex = targetDayIndex +3;
ResponseAssert.isTrue(OtherErrorCode.SIGN_IN_CANNOT_ADVANCE,
targetDayIndex >= 1);

View File

@ -35,6 +35,8 @@ public class SignInStatusQueryExe {
LocalDate weekStartDate = saudiToday.with(DayOfWeek.MONDAY);
int currentDayIndex = saudiToday.getDayOfWeek().getValue();
currentDayIndex = currentDayIndex + 3;
List<SignInDailyConfig> configs = dailyConfigDAO.selectList(
new LambdaQueryWrapper<SignInDailyConfig>()
.orderByAsc(SignInDailyConfig::getDayIndex)

View File

@ -60,6 +60,8 @@ public class SupplementCheckInExe {
LocalDate weekStartDate = saudiToday.with(DayOfWeek.MONDAY);
int currentDayIndex = saudiToday.getDayOfWeek().getValue();
currentDayIndex = currentDayIndex + 3;
ResponseAssert.isTrue(OtherErrorCode.SIGN_IN_SUPPLEMENT_ONLY_PAST,
targetDayIndex < currentDayIndex);