From 410e2ff47b12618e89c281d35208740006d36fe0 Mon Sep 17 00:00:00 2001 From: CODE <1650192445@qq.com> Date: Tue, 17 Oct 2023 17:32:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=8A=E8=AD=A6=E6=8E=A8=E9=80=81++?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/schedule/alarms_push.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/api/app/lib/schedule/alarms_push.js b/api/app/lib/schedule/alarms_push.js index b5054f1..4a844cf 100644 --- a/api/app/lib/schedule/alarms_push.js +++ b/api/app/lib/schedule/alarms_push.js @@ -1,7 +1,7 @@ const moment = require('moment') let isDev = false -isDev = true +// isDev = true let proDebug = false proDebug = true @@ -130,6 +130,7 @@ module.exports = function (app, opts) { pepProject_name.push({ id: poms.id, anxinProjectId: poms.anxinProjectId, name: corPepProject.project_name }) } else { // 不符合当前项目的时间节点 + pLog(`不符合当前项目的时间节点`) continue } } else { @@ -220,6 +221,7 @@ module.exports = function (app, opts) { searchStrucIds.unshift(-1) } else { // 没有结构物可查 + pLog(`没有结构物可查`) continue } let pepProjectName = @@ -1108,6 +1110,7 @@ module.exports = function (app, opts) { pLog(`异常比率 ${rate} 设定值 ${deviceProportion}`) if (rate < parseFloat(deviceProportion)) { // 设备异常率低于设定值 + pLog(`异常设备率低于设定值`) continue } @@ -1687,7 +1690,7 @@ module.exports = function (app, opts) { html: html }) - //存日志 存动态 socket到前端 + // //存日志 存动态 socket到前端 let dataToSave = { time: moment().format(), pushConfigId: c.id,