guhongwei 3 yıl önce
ebeveyn
işleme
17f080f66c
1 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  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) {