|
|
@@ -44,7 +44,8 @@ public class SyncNewFosterwxTask {
|
|
|
public void execute() {
|
|
|
System.out.println("[cronjob]:同步微信养号任务到REDIS");
|
|
|
List<LocalDateTime> dates = new ArrayList<>();
|
|
|
- dates.add(LocalDateTime.now().plusDays(-1)); //.昨天
|
|
|
+ LocalDateTime yesterDay = LocalDateTime.now().plusDays(-1);
|
|
|
+ dates.add(LocalDateTime.of(yesterDay.toLocalDate(),LocalTime.MAX)); //.昨天
|
|
|
dates.add(LocalDateTime.now()); //.今天
|
|
|
for (Integer i = 0; i < dates.size(); i++) {
|
|
|
LocalDateTime nowDate = dates.get(i);
|