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 moment = require('moment')
const request = require('superagent') const request = require('superagent')
function videoList (opts) { function videoList(opts) {
return async function (ctx) { return async function (ctx) {
try { try {
const { models, } = ctx.fs.dc; const { models, } = ctx.fs.dc;
@ -54,9 +54,6 @@ function videoList (opts) {
}, { }, {
deviceName: '新土线', deviceName: '新土线',
deviceSerial: 'AA9943808', deviceSerial: 'AA9943808',
}, {
deviceName: '东文大桥',
deviceSerial: 'L48947087',
}, { }, {
deviceName: '莲姚线', deviceName: '莲姚线',
deviceSerial: 'L48947082', deviceSerial: 'L48947082',
@ -66,6 +63,9 @@ function videoList (opts) {
}, { }, {
deviceName: '新武大桥', deviceName: '新武大桥',
deviceSerial: 'L48947086', deviceSerial: 'L48947086',
}, {
deviceName: '东文大桥',
deviceSerial: 'L48947087',
},] },]
const deviceState = await Promise.all(deviceRes_.map(d => { const deviceState = await Promise.all(deviceRes_.map(d => {
@ -82,7 +82,7 @@ function videoList (opts) {
if (corState) { if (corState) {
d.status = corState.data.status d.status = corState.data.status
} else { } else {
d.status = 0 d.status = 0
} }
d.token = yingshiToken d.token = yingshiToken
} }

Loading…
Cancel
Save