From 4dcd501d981c8da01a8942e943c53e708eac5bcc Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Wed, 10 Aug 2022 16:12:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8E=A8=E9=80=81=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/app/lib/schedule/cameraStatePush.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/VideoAccess-VCMP/api/app/lib/schedule/cameraStatePush.js b/code/VideoAccess-VCMP/api/app/lib/schedule/cameraStatePush.js index 7efb877..4758961 100644 --- a/code/VideoAccess-VCMP/api/app/lib/schedule/cameraStatePush.js +++ b/code/VideoAccess-VCMP/api/app/lib/schedule/cameraStatePush.js @@ -35,6 +35,7 @@ module.exports = function (app, opts) { const timeNow = moment().startOf('minute').format() for (let c of configRes) { + console.log('上下线推送方式', c.pushWay,); // 查配置信息所对应的摄像头15min内的在离线状态 const cameraIds = c.cameraStatusPushMonitors.map(m => m.cameraId) const offlineStatusRes = await models.CameraStatusOfflineLog.findAll({ @@ -51,7 +52,7 @@ module.exports = function (app, opts) { }], order: [['time', 'ASC']], }) - + console.log('上下线推送路线记录', offlineStatusRes); if (offlineStatusRes.length) { const cameraStatusMap = {} // 当前逻辑 @@ -120,7 +121,8 @@ module.exports = function (app, opts) { // camera: cameraIds, } // 离线推送 - console.log('离线推送', c.pushWay, offArr, onArr, receiver,); + console.log('上下线推送数据', offArr, onArr); + console.log('上下线推送接收', receiver); if (offArr.length && c.noticeWay && c.noticeWay.includes('offline') && receiver.length) { if (c.pushWay == 'email') { // 邮件