diff --git a/api/app/lib/controllers/data/videoCenter.js b/api/app/lib/controllers/data/videoCenter.js index 00e42c2d..9a074fa7 100644 --- a/api/app/lib/controllers/data/videoCenter.js +++ b/api/app/lib/controllers/data/videoCenter.js @@ -2,7 +2,7 @@ const moment = require('moment') const request = require('superagent') -function videoList (opts) { +function videoList(opts) { return async function (ctx) { try { const { models, } = ctx.fs.dc; @@ -54,9 +54,6 @@ function videoList (opts) { }, { deviceName: '新土线', deviceSerial: 'AA9943808', - }, { - deviceName: '东文大桥', - deviceSerial: 'L48947087', }, { deviceName: '莲姚线', deviceSerial: 'L48947082', @@ -66,6 +63,9 @@ function videoList (opts) { }, { deviceName: '新武大桥', deviceSerial: 'L48947086', + }, { + deviceName: '东文大桥', + deviceSerial: 'L48947087', },] const deviceState = await Promise.all(deviceRes_.map(d => { @@ -82,7 +82,7 @@ function videoList (opts) { if (corState) { d.status = corState.data.status } else { - d.status = 0 + d.status = 0 } d.token = yingshiToken }