Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

天气问题 #151

Open
imyyer opened this issue Jun 16, 2023 · 18 comments
Open

天气问题 #151

imyyer opened this issue Jun 16, 2023 · 18 comments

Comments

@imyyer
Copy link

imyyer commented Jun 16, 2023

我在env内填写了key,确定申请的类型没错,但是还是获取失败,我清空缓存试过了还是不行,请问如何解决?

@imsyy
Copy link
Owner

imsyy commented Jun 17, 2023

有站点链接吗?报错是什么?

@imyyer
Copy link
Author

imyyer commented Jun 17, 2023

有站点链接吗?报错是什么?

homepage.8uid.com

homepage.8uid.com/:1 GET https://cdn.imsyy.top/gh/imsyy/file/font/HarmonyOS_Sans/regular.min.css net::ERR_ABORTED 403
The FetchEvent for "https://hm.baidu.com/hm.js?14e9f35ff8bc67fd4bcb5f07a6e6655a" resulted in a network error response: the promise was rejected.
GET https://hm.baidu.com/hm.js?14e9f35ff8bc67fd4bcb5f07a6e6655a net::ERR_FAILED
index.5620a409.js:8 天气信息获取失败
r @ index.5620a409.js:8
(匿名) @ index.5620a409.js:8
Promise.catch(异步)
(匿名) @ index.5620a409.js:8
Promise.then(异步)
o @ index.5620a409.js:8
(匿名) @ index.5620a409.js:8
(匿名) @ index.5620a409.js:1
Ft @ index.5620a409.js:1
Rt @ index.5620a409.js:1
t.__weh.t.__weh @ index.5620a409.js:1
rn @ index.5620a409.js:1
Z @ index.5620a409.js:1
mount @ index.5620a409.js:1
Ga.t.mount @ index.5620a409.js:1
(匿名) @ index.5620a409.js:8

@imsyy
Copy link
Owner

imsyy commented Jun 17, 2023

我这边访问正常啊

@imyyer
Copy link
Author

imyyer commented Jun 17, 2023

我这边访问正常啊

我这边一直显示获取失败,换设备也一样,出去用流量也一样

@imsyy
Copy link
Owner

imsyy commented Jun 17, 2023

image

你看看这个返回的是什么

@imsyy
Copy link
Owner

imsyy commented Jun 17, 2023

另外记得把 index.html 中的 HarmonyOS_Sans 字体链接换成 https://s1.hdslb.com/bfs/static/jinkela/long/font/regular.css,我的链接开防盗链了

@imyyer
Copy link
Author

imyyer commented Jun 17, 2023

图像

你看这个返回的是什么

{status: "1", info: "OK", infocode: "10000", province: [], city: [], adcode: [], rectangle: []}
adcode
:
[]
city
:
[]
info
:
"OK"
infocode
:
"10000"
province
:
[]
rectangle
:
[]
status
:
"1"

@imsyy
Copy link
Owner

imsyy commented Jun 17, 2023

image

@imyyer
Copy link
Author

imyyer commented Jun 17, 2023

图像

局域网ip不能正常使用?

@imsyy
Copy link
Owner

imsyy commented Jun 17, 2023

图像

局域网ip不能正常使用?

有可能,这取决于高德了,或者你可以换一个天气 api 😭

@imyyer
Copy link
Author

imyyer commented Jun 17, 2023

图片

局域网ip不能正常使用?

有可能,这取决于高德了,或者你可以更换一个空气api😭

谁家没事用公网ip上网。。。在高德就有点不人性化了

@imsyy
Copy link
Owner

imsyy commented Jun 17, 2023

图片

局域网ip不能正常使用?

有可能,这取决于高德了,或者你可以更换一个空气api😭

谁家没事用公网ip上网。。。在高德就有点不人性化了

奇怪就奇怪在我这也不是公网ip,但是我这就正常

imsyy added a commit that referenced this issue Jul 3, 2023
@1299172402
Copy link

同样的问题,我用中国移动的网络也这样,但切成其他网络正常。也是使用自己申请的高德APIkey

@1299172402
Copy link

后改用教书先生的api接口正常使用

@Terry1824
Copy link

图片

局域网ip不能正常使用?

有可能,这取决于高德了,或者你可以更换一个空气api😭

谁家没事用公网ip上网。。。在高德就有点不人性化了

奇怪就奇怪在我这也不是公网ip,但是我这就正常

原因貌似是因为使用的运营商的问题,如果是用的中国移动,确实无法使用高德API访问,需要使用中国电信等

@xlenco
Copy link

xlenco commented Mar 9, 2024

我key留空不是用的教书先生的api吗?,不能使用。xlenco.top
貌似还没有报错

@imsyy
Copy link
Owner

imsyy commented Mar 9, 2024

xlenco.top

#252
参考下吧,最近忙,没空处理 😢

@xlenco
Copy link

xlenco commented Mar 9, 2024

解决了,谢谢大大

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants