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,