guhongwei 3 лет назад
Родитель
Сommit
17f080f66c
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      app/schedule/patentearly.js

+ 3 - 2
app/schedule/patentearly.js

@@ -2,8 +2,9 @@
 module.exports = {
   schedule: {
     // interval: '30s', // 1 分钟间隔
-    // cron: '0 0 10 * * *',
-    cron: '0 10 10 ? * *',
+    // cron: '0 0 10 * * *',//每天上午十点
+    // cron: '0 10 10 ? * *', // 每天上午十点十分
+    cron: '0 0 23 * * *', // 每天晚上十一点
     type: 'worker', // 指定所有的 worker 都需要执行
   },
   async task(ctx) {