|
@ -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 |
|
|