From b878a0c5c697f8630d094d29006fd5dc8d1f4d7f Mon Sep 17 00:00:00 2001 From: liujiangyong Date: Sat, 12 Aug 2023 08:54:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9C=E6=96=87=E5=A4=A7=E6=A1=A5=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E6=94=BE=E6=9C=80=E5=90=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/data/videoCenter.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 }