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

2
api/config.js

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

Loading…
Cancel
Save