Browse Source

优化推送逻辑

release_1.1.2
巴林闲侠 2 years ago
parent
commit
3330f07be4
  1. 2
      code/VideoAccess-VCMP/api/.vscode/launch.json
  2. 2
      code/VideoAccess-VCMP/api/app/lib/schedule/cameraStatePush.js
  3. 2
      code/VideoAccess-VCMP/api/app/lib/schedule/freshYingshiMsg.js

2
code/VideoAccess-VCMP/api/.vscode/launch.json

@ -16,7 +16,7 @@
"-p 4000",
"-f http://localhost:4000",
"-g postgres://postgres:123@10.8.30.32:5432/video_access",
"--redisHost 10.8.30.34",
"--redisHost 10.8.30.112",
"--redisPort 6379",
"--axyApiUrl http://127.0.0.1:4100",
"--iotAuthApi http://127.0.0.1:4200",

2
code/VideoAccess-VCMP/api/app/lib/schedule/cameraStatePush.js

@ -120,7 +120,7 @@ module.exports = function (app, opts) {
// camera: cameraIds,
}
// 离线推送
console.log('离线推送', pushWay, offArr, onArr, receiver,);
console.log('离线推送', c.pushWay, offArr, onArr, receiver,);
if (offArr.length && c.noticeWay && c.noticeWay.includes('offline') && receiver.length) {
if (c.pushWay == 'email') {
// 邮件

2
code/VideoAccess-VCMP/api/app/lib/schedule/freshYingshiMsg.js

@ -7,7 +7,7 @@ module.exports = function (app, opts) {
interval: '0 */4 * * * *',
// interval: '*/3 * * * *',
// immediate: true,
// proRun: true,
proRun: true,
},
async () => {

Loading…
Cancel
Save