From cb3986e02fa2eafae56e1257b73873708308df8d Mon Sep 17 00:00:00 2001 From: zhaobing Date: Tue, 9 Jan 2024 17:33:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9bugs+=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1=E4=B8=BA=E7=AB=8B=E5=8D=B3?= =?UTF-8?q?=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/schedule/work_notice.js | 3 ++- api/config.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/api/app/lib/schedule/work_notice.js b/api/app/lib/schedule/work_notice.js index dd01330..fb0afda 100644 --- a/api/app/lib/schedule/work_notice.js +++ b/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) diff --git a/api/config.js b/api/config.js index 8a6ac36..3e323a4 100644 --- a/api/config.js +++ b/api/config.js @@ -220,7 +220,6 @@ const product = { }, maxSize: 104857600, // 100M types: TYPES, - phone: PHONE } }, { entry: require('./app').entry, @@ -232,7 +231,8 @@ const product = { root: FS_CAMUNDA_ROOT }, emisWeb: FS_EMIS_WEB, - + phone: PHONE, + exclude: [ // "*", { p: '/attachments/:p', o: 'POST' },