Browse Source

萤石查询间隔 4min

release_1.1.2
巴林闲侠 3 years ago
parent
commit
8ab59917f5
  1. 2
      code/VideoAccess-VCMP/api/.vscode/launch.json
  2. 2
      code/VideoAccess-VCMP/api/app/lib/models/application.js
  3. 6
      code/VideoAccess-VCMP/api/app/lib/schedule/freshYingshiMsg.js

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

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

2
code/VideoAccess-VCMP/api/app/lib/models/application.js

@ -25,7 +25,7 @@ module.exports = dc => {
autoIncrement: false autoIncrement: false
}, },
type: { type: {
type: array, type: DataTypes.ARRAY(DataTypes.STRING),
allowNull: true, allowNull: true,
defaultValue: null, defaultValue: null,
comment: "web / app / wxapp / other", comment: "web / app / wxapp / other",

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

@ -4,9 +4,8 @@ const moment = require('moment')
module.exports = function (app, opts) { module.exports = function (app, opts) {
const freshYingshiState = app.fs.scheduleInit( const freshYingshiState = app.fs.scheduleInit(
{ {
interval: '0 */5 * * * *', interval: '0 */4 * * * *',
interval: '*/10 * * * *', // interval: '*/3 * * * *',
immediate: false,
// immediate: true, // immediate: true,
// proRun: true, // proRun: true,
}, },
@ -34,6 +33,7 @@ module.exports = function (app, opts) {
deviceList = deviceList.concat.apply(deviceList, deviceRes.data) deviceList = deviceList.concat.apply(deviceList, deviceRes.data)
for (let d of deviceRes.data) { for (let d of deviceRes.data) {
const existD = await models.GbCamera.findOne({ const existD = await models.GbCamera.findOne({
where: { where: {
streamid: d.deviceSerial streamid: d.deviceSerial

Loading…
Cancel
Save