Browse Source

feat:修改bugs+修改定时任务为立即执行

dev
zhaobing 1 year ago
parent
commit
cb3986e02f
  1. 3
      api/app/lib/schedule/work_notice.js
  2. 2
      api/config.js

3
api/app/lib/schedule/work_notice.js

@ -12,7 +12,7 @@ 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',
}
@ -117,6 +117,7 @@ module.exports = function (app, opts) {
})
//发送企业微信通知
if (sendRslt && sendRslt.length) {
console.log('sendRslt发送通知的数据',sendRslt)
for (let { dataValues: c } of sendRslt) {
//根据电话号码查询企业微信对应的userId
//phone,兰邦夫的电话号码(2024-1-9)

2
api/config.js

@ -220,7 +220,6 @@ const product = {
},
maxSize: 104857600, // 100M
types: TYPES,
phone: PHONE
}
}, {
entry: require('./app').entry,
@ -232,6 +231,7 @@ const product = {
root: FS_CAMUNDA_ROOT
},
emisWeb: FS_EMIS_WEB,
phone: PHONE,
exclude: [
// "*",

Loading…
Cancel
Save