leonismoe / genshin-stats Goto Github PK
View Code? Open in Web Editor NEWQuery Genshin Impact's game record data for CN server. 根据原神 UID 查询统计数据、角色列表、深境螺旋战绩
Home Page: https://genshin-stats.leonis.dev/
License: MIT License
Query Genshin Impact's game record data for CN server. 根据原神 UID 查询统计数据、角色列表、深境螺旋战绩
Home Page: https://genshin-stats.leonis.dev/
License: MIT License
#2 is closed before I can confirm the issue is fixed so here we go again.
After clicking 查询 button, an empty toast was created by createStatStore(). Tracking down the calling stack we got getGenshinGameStats
->request<GameStats>
.
console.log(response.text());
shows {"data":null,"message":"","retcode":10103}
was received, indicating something is wrong with Mihoyo API. Tested with UID 100011111 on https://babalae.github.io/genshin-info/ to make sure UID is valid.
After #1 fix the error in user script is now gone. However the website still cannot return any data, and only an empty toast was shown. Tested with latest Chrome and Firefox.
Firefox+Violentmonkey
米游社登录,安装userscript,打开查询页面,输入UID,点击查询后console报错:
Uncaught (in promise) TypeError: Headers constructor: ltoken=***; Path=/; Domain=mihoyo.com; Max-Age=31536000
ltuid=***; Path=/; Domain=mihoyo.com; Max-Age=31536000 is an invalid header value.
transformHeaders moz-extension://f5056d9c-4554-4f02-b3c1-8ca790a5bfd0/ Genshin Stats.user.js#1:64
onload moz-extension://f5056d9c-4554-4f02-b3c1-8ca790a5bfd0/ Genshin Stats.user.js#1:43
HttpRequested moz-extension://f5056d9c-4554-4f02-b3c1-8ca790a5bfd0/sandbox/injected-web.js:1
在transformHeaders(header)
里加了个console.log(header)
,可以看到这个cookie的确是分行了。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.