From a9c0557d1874232f176d454b195690519fb564d2 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Wed, 2 Aug 2023 17:47:07 +0800 Subject: [PATCH] =?UTF-8?q?busLine=20=E9=BB=98=E8=AE=A4=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=20[]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/overview/operation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/app/lib/controllers/overview/operation.js b/api/app/lib/controllers/overview/operation.js index 7e06102d..0629e995 100644 --- a/api/app/lib/controllers/overview/operation.js +++ b/api/app/lib/controllers/overview/operation.js @@ -170,11 +170,11 @@ async function busLine (ctx) { const { busLicence } = ctx.query const zhidiaoData = app.fs.zhidiaoData - let rslt = {} + let rslt = [] if (zhidiaoData) { let corBus = (zhidiaoData.busRun || []).find(b => b.busNoChar == busLicence) if (corBus) { - rslt = (zhidiaoData.busLine || {})[corBus.lineNo] || {} + rslt = (zhidiaoData.busLine || {})[corBus.lineNo] || [] } }