|
@@ -30,7 +30,7 @@ public class TaskService {
|
|
|
@Autowired
|
|
|
DingdingService dingdingService;
|
|
|
|
|
|
- @Scheduled(initialDelay = 2000, fixedDelay = 1000 * 60 )
|
|
|
+ @Scheduled(cron = "0 */1 * * * ?")
|
|
|
public void task() {
|
|
|
try {
|
|
|
checkAccount();
|
|
@@ -40,7 +40,7 @@ public class TaskService {
|
|
|
|
|
|
}
|
|
|
|
|
|
- @Scheduled(initialDelay = 3500, fixedDelay = 1000 * 60 * 60 )
|
|
|
+ @Scheduled(cron = "0 0 * * * ?")
|
|
|
public void task2() {
|
|
|
try {
|
|
|
checkAccountDb();
|