Sfoglia il codice sorgente

获取当前周逻辑调整

dzx 4 mesi fa
parent
commit
8b00dc9f88

+ 1 - 1
src/main/java/com/xjrsoft/module/schedule/controller/ScheduleController.java

@@ -175,7 +175,7 @@ public class ScheduleController {
                 LocalDateTime startDate = startDateTime.plusDays(i * 6).withHour(0).withMinute(0).withSecond(0).withNano(0);
                 LocalDateTime endDate = startDateTime.plusDays((i + 1) * 6).withHour(23).withMinute(59).withSecond(59).withNano(9999);
                 if (now.isAfter(startDate) && now.isBefore(endDate)) {
-                    return RT.ok(i + 1);
+                    return RT.ok(i);
                 }
             }
         }