Browse Source

debug

release_1.1.2
巴林闲侠 3 years ago
parent
commit
00acfb8ca9
  1. 5
      code/VideoAccess-VCMP/api/app/lib/schedule/freshYingshiMsg.js

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

@ -5,10 +5,10 @@ module.exports = function (app, opts) {
const freshYingshiState = app.fs.scheduleInit(
{
interval: '0 */5 * * * *',
// interval: '*/10 * * * *',
interval: '*/10 * * * *',
immediate: false,
// immediate: true,
proRun: true,
// proRun: true,
},
async () => {
@ -82,6 +82,7 @@ module.exports = function (app, opts) {
time: nowTime
}
})
console.log('上下线记录', bulkCreateData);
if (bulkCreateData.length) {
await models.CameraStatusOfflineLog.bulkCreate(bulkCreateData)
}

Loading…
Cancel
Save