Skip to content

Commit 104f545

Browse files
committed
fix(repo): 字段统一问题
1 parent d840e67 commit 104f545

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

laravel/app/Http/Repository/BusRepository.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ public function getListV2($line, $refresh = false)
262262
$fromTo = $item['LDirection'] ?? '';
263263
$bus = $item['LName'] ?? '';
264264
$Guid = $item['Guid'] ?? '';
265-
$link = 'APTSLine.aspx?cid=&LineInfo='.$bus.'('.$fromTo.')'.'&Guid='.$Guid;
265+
$link = 'APTSLine.aspx?cid=&LineInfo='.$bus.'('.$fromTo.')'.'&LineGuid='.$Guid;
266266
$return[] = [
267267
'FromTo' => $fromTo,
268268
'bus' => $bus,
@@ -337,8 +337,8 @@ public function getLine($path, $get)
337337

338338
public function getLineData2($path, $get)
339339
{
340-
if (empty($path) || empty($get['cid']) || empty($get['LineGuid']) || empty($get['LineInfo']))
341-
return false;
340+
if (empty($path) || empty($get['LineGuid']) || empty($get['LineInfo']))
341+
return [];
342342

343343
$url = 'http://www.szjt.gov.cn/BusQu/APTSLine.aspx/GetData2';
344344
$param = '{"guid":"'.$get['LineGuid'].'"}';

0 commit comments

Comments
 (0)