From 0fb603ce87c381da49091644e2b80c72b35f9a0c Mon Sep 17 00:00:00 2001 From: BobLiu Date: Sat, 28 Dec 2024 12:00:14 +0800 Subject: [PATCH] feat: update #toilet.update.guiyang: adapt new webpage --- module/toilet/update/guiyang.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/toilet/update/guiyang.php b/module/toilet/update/guiyang.php index e7f57261..89789ad9 100755 --- a/module/toilet/update/guiyang.php +++ b/module/toilet/update/guiyang.php @@ -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) { @@ -59,4 +59,4 @@ // Save data setData('toilet/toiletInfo.json', json_encode($toiletInfo)); setData('toilet/citiesMeta.json', json_encode($citiesMeta)); -replyAndLeave('更新数据成功,共 '.count($toiletInfo['guiyang']).' 条数据'); \ No newline at end of file +replyAndLeave('更新数据成功,共 '.count($toiletInfo['guiyang']).' 条数据');