This commit is contained in:
雷欧(林平凡)
2025-01-08 17:56:55 +08:00
parent de98c3e1bb
commit 0f4dc7599f

View File

@@ -727,7 +727,7 @@ public class JDUtils {
case "刷新7天": { case "刷新7天": {
long start = System.currentTimeMillis(); long start = System.currentTimeMillis();
int count = 0; int count = 0;
LocalDateTime startDate = LocalDateTime.now().minusDays(3).withMinute(0).withSecond(0).withNano(0); LocalDateTime startDate = LocalDateTime.now().minusDays(7).withMinute(0).withSecond(0).withNano(0);
LocalDateTime lastHour = LocalDateTime.now().minusHours(1).withMinute(0).withSecond(0).withNano(0); LocalDateTime lastHour = LocalDateTime.now().minusHours(1).withMinute(0).withSecond(0).withNano(0);
while (!startDate.isEqual(lastHour)) { while (!startDate.isEqual(lastHour)) {
startDate = startDate.plusHours(1); startDate = startDate.plusHours(1);
@@ -752,7 +752,7 @@ public class JDUtils {
} }
} }
} }
content.append("刷新天成功,耗时").append((System.currentTimeMillis() - start) / 1000).append("\r").append("刷新订单数:").append(count); content.append("刷新7天成功,耗时").append((System.currentTimeMillis() - start) / 1000).append("\r").append("刷新订单数:").append(count);
break; break;
} }