From 8ab59917f51194dde78d33230570744dc8dfb250 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Wed, 10 Aug 2022 14:35:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=90=A4=E7=9F=B3=E6=9F=A5=E8=AF=A2=E9=97=B4?= =?UTF-8?q?=E9=9A=94=204min?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/VideoAccess-VCMP/api/.vscode/launch.json | 2 +- code/VideoAccess-VCMP/api/app/lib/models/application.js | 2 +- .../api/app/lib/schedule/freshYingshiMsg.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/VideoAccess-VCMP/api/.vscode/launch.json b/code/VideoAccess-VCMP/api/.vscode/launch.json index d2b588d..14736de 100644 --- a/code/VideoAccess-VCMP/api/.vscode/launch.json +++ b/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 127.0.0.1", + "--redisHost 10.8.30.34", "--redisPort 6379", "--axyApiUrl http://127.0.0.1:4100", "--iotAuthApi http://127.0.0.1:4200", diff --git a/code/VideoAccess-VCMP/api/app/lib/models/application.js b/code/VideoAccess-VCMP/api/app/lib/models/application.js index 527a521..e51fd54 100644 --- a/code/VideoAccess-VCMP/api/app/lib/models/application.js +++ b/code/VideoAccess-VCMP/api/app/lib/models/application.js @@ -25,7 +25,7 @@ module.exports = dc => { autoIncrement: false }, type: { - type: array, + type: DataTypes.ARRAY(DataTypes.STRING), allowNull: true, defaultValue: null, comment: "web / app / wxapp / other", diff --git a/code/VideoAccess-VCMP/api/app/lib/schedule/freshYingshiMsg.js b/code/VideoAccess-VCMP/api/app/lib/schedule/freshYingshiMsg.js index ce3b087..612ded3 100644 --- a/code/VideoAccess-VCMP/api/app/lib/schedule/freshYingshiMsg.js +++ b/code/VideoAccess-VCMP/api/app/lib/schedule/freshYingshiMsg.js @@ -4,9 +4,8 @@ const moment = require('moment') module.exports = function (app, opts) { const freshYingshiState = app.fs.scheduleInit( { - interval: '0 */5 * * * *', - interval: '*/10 * * * *', - immediate: false, + interval: '0 */4 * * * *', + // interval: '*/3 * * * *', // immediate: true, // proRun: true, }, @@ -34,6 +33,7 @@ module.exports = function (app, opts) { deviceList = deviceList.concat.apply(deviceList, deviceRes.data) for (let d of deviceRes.data) { + const existD = await models.GbCamera.findOne({ where: { streamid: d.deviceSerial