spencerwooo / PaimonMenuBar

Track real-time Genshin Impact stats in your macOS menubar
https://paimon.swo.moe
MIT License
162 stars 12 forks source link

Data fetching not working / 数据无法更新 #22

Closed mma345 closed 1 year ago

mma345 commented 2 years ago

it works fine before, but now it just stop refresh and even if the cookie is correct, it still sats that it is wrong, maybe something changes in the mihoyo's website i.e miyoushe and hoyo lab.

spencerwooo commented 2 years ago

因为 API 触发了验证码,登陆米游社点击「我的」-「我的角色」即可看到。手动验证之后即可重新获取数据。但是这个验证码会偶尔由于频繁调用 API 而触发,所以建议 app 中设置更大间隔的刷新时间(直到找到更好的解决方法)。

It's because the API is captcha-ed. So login to your HoyoLab APP and navigate to characters. You'll see and manually go through the captcha, which re-enables the API. The captcha is triggered when the API is called too frequent, so set a larger refresh interval in PaimonMenuBar - until we find a better solution.

spencerwooo commented 1 year ago

Should be working better now in v1.12.126