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 = {}