From bee5fe64655b1459dbabdab3622a93532a484bfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=95=E5=B1=82=E7=94=A8=E6=88=B7?= Date: Thu, 17 Mar 2022 22:58:41 +0800 Subject: [PATCH] fix api --- index.html | 6 +++--- js/main.js | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 53098157be..1a24c3272a 100644 --- a/index.html +++ b/index.html @@ -168,9 +168,9 @@
天气 加载失败 *°C~*°C 风向* + id="wea_text">加载失败 N/A°C~N/A°C 
diff --git a/js/main.js b/js/main.js index b7ac03ea22..bd39541422 100644 --- a/js/main.js +++ b/js/main.js @@ -89,7 +89,9 @@ fetch('https://v1.hitokoto.cn?max_length=24') .catch(console.error) //获取天气 -fetch('https://www.yiketianqi.com/free/day?appid=47343665&appsecret=dABM2QxS&unescape=1') +//每日限量 100 次 +//请前往 https://www.tianqiapi.com/ 申请(免费) +fetch('https://www.yiketianqi.com/free/day?appid=43986679&appsecret=TksqGZT7&unescape=1') .then(response => response.json()) .then(data => { $('#wea_text').text(data.wea)