diff --git a/code/VideoAccess-VCMP/api/app/lib/controllers/application/auth.js b/code/VideoAccess-VCMP/api/app/lib/controllers/application/auth.js new file mode 100644 index 0000000..e69de29 diff --git a/code/VideoAccess-VCMP/api/app/lib/schedule/cameraStatePush.js b/code/VideoAccess-VCMP/api/app/lib/schedule/cameraStatePush.js index 642b47a..d566936 100644 --- a/code/VideoAccess-VCMP/api/app/lib/schedule/cameraStatePush.js +++ b/code/VideoAccess-VCMP/api/app/lib/schedule/cameraStatePush.js @@ -33,7 +33,7 @@ module.exports = function (app, opts) { ], }) - const timeNow = moment().format() + const timeNow = moment().startOf('minute').format() for (let c of configRes) { // 查配置信息所对应的摄像头15min内的在离线状态 const cameraIds = c.cameraStatusPushMonitors.map(m => m.cameraId) @@ -120,7 +120,7 @@ module.exports = function (app, opts) { // camera: cameraIds, } // 离线推送 - console.log('object'); + console.log('离线推送', pushWay, offArr, onArr, receiver,); if (offArr.length && c.noticeWay && c.noticeWay.includes('offline') && receiver.length) { if (c.pushWay == 'email') { // 邮件 @@ -239,7 +239,7 @@ module.exports = function (app, opts) { } } } catch (error) { - console.error(error); + console.error('15min 上下线推送错误:', error); } } )