Browse Source

东文大桥视频放最后

dev
liujiangyong 2 years ago
parent
commit
b878a0c5c6
  1. 10
      api/app/lib/controllers/data/videoCenter.js

10
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
}

Loading…
Cancel
Save