Skip to content

Commit

Permalink
feat: update #toilet.update.guiyang: adapt new webpage
Browse files Browse the repository at this point in the history
  • Loading branch information
BobLiu0518 committed Dec 28, 2024
1 parent 76406c5 commit 0fb603c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/toilet/update/guiyang.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
];

// Get lines
$lines = json_decode(file_get_contents('http://gongzhongfuwu.guiyang3haoxian.cn/api/station/list'), true)['data'];
$lines = json_decode(file_get_contents('https://gygds1.topterr.com/api/station/list'), true)['data'];

// Get stations
foreach($lines as $line) {
Expand Down Expand Up @@ -59,4 +59,4 @@
// Save data
setData('toilet/toiletInfo.json', json_encode($toiletInfo));
setData('toilet/citiesMeta.json', json_encode($citiesMeta));
replyAndLeave('更新数据成功,共 '.count($toiletInfo['guiyang']).' 条数据');
replyAndLeave('更新数据成功,共 '.count($toiletInfo['guiyang']).' 条数据');

0 comments on commit 0fb603c

Please sign in to comment.