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] || [] } }