From 1bc80e89a16d9b9ff3684de226ddb3a32d42d08b Mon Sep 17 00:00:00 2001 From: zhaobing Date: Wed, 10 Jan 2024 17:49:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=B3=A8=E9=87=8A=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/schedule/work_notice.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/app/lib/schedule/work_notice.js b/api/app/lib/schedule/work_notice.js index 700e1f9..3224244 100644 --- a/api/app/lib/schedule/work_notice.js +++ b/api/app/lib/schedule/work_notice.js @@ -12,14 +12,14 @@ const schedule = require('node-schedule') const moment = require('moment') const request = require('superagent') let isDev = false -isDev = true +// isDev = true const sendType = { 'mini': 'miniprogram_notice', } module.exports = function (app, opts) { const workOrderNotice = app.fs.scheduleInit( { - interval: '30 * * * *',//一小时执行一次 + interval: '0 * * * *',//一小时执行一次 immediate: isDev, proRun: !isDev, }, @@ -66,7 +66,7 @@ module.exports = function (app, opts) { WHERE story.apply_user in ('731') ` ).toPromise() - console.log('查询结果', formRes) + // console.log('查询结果', formRes) if (formRes && formRes.length > 0) { for (let f of formRes) { let user = {}