|
@ -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; |
|
@ -66,7 +66,10 @@ function videoList(opts) { |
|
|
}, { |
|
|
}, { |
|
|
deviceName: '东文大桥', |
|
|
deviceName: '东文大桥', |
|
|
deviceSerial: 'L48947087', |
|
|
deviceSerial: 'L48947087', |
|
|
},] |
|
|
}, { |
|
|
|
|
|
deviceName: '银三角', |
|
|
|
|
|
deviceSerial: 'AC7329717', |
|
|
|
|
|
}] |
|
|
|
|
|
|
|
|
const deviceState = await Promise.all(deviceRes_.map(d => { |
|
|
const deviceState = await Promise.all(deviceRes_.map(d => { |
|
|
return app.fs.yingshiRequest.post(`lapp/device/info`, { |
|
|
return app.fs.yingshiRequest.post(`lapp/device/info`, { |
|
|