Skip to content

Commit 0162987

Browse files
committed
fix(control): 维护的线路获取数据
1 parent 104f545 commit 0162987

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

laravel/app/Http/Controllers/Bus/IndexController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ private function getNewList($line)
107107
*/
108108
private function getOldList($line)
109109
{
110-
return BusRepository::getInstent()->getList($line);
110+
return BusRepository::getInstent()->getListV2($line);
111111
}
112112

113113
/**
@@ -137,7 +137,7 @@ public function busLine(Request $request)
137137
$parseUrl = parse_url($post['href']);
138138
$query = $parseUrl['query'] ?? '';
139139
parse_str($query, $params);
140-
$post['cid'] = $params['cid'];
140+
$post['cid'] = $params['cid'] ?? '';
141141
$aspUrl = $parseUrl['path'] ?? 'APTSLine.aspx';
142142
}
143143
unset($post['href']);

0 commit comments

Comments
 (0)