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

Chore:移除 ClientToken & 对 ModLaunch 刷新请求部分进行解耦合 #5508

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

wuliaodexiaoluo
Copy link
Contributor

@wuliaodexiaoluo wuliaodexiaoluo commented Jan 25, 2025

因为规范中 ClientToken 是可选的,且大部分皮肤站使用 Blessing Skin,Blessing Skin 是没有要求必须提供这个值的

对代码的刷新登录请求部分使用 JObject 和 JProperty 替代字符串进行构建数据,提高代码可读性和可维护性

希望龙猫以后不要写出这样的代码了

参考资料:

https://github.com/yushijinhun/authlib-injector/wiki/Yggdrasil-%E6%9C%8D%E5%8A%A1%E7%AB%AF%E6%8A%80%E6%9C%AF%E8%A7%84%E8%8C%83#%E5%88%B7%E6%96%B0

@LTCatt LTCatt added 处理中 开发者正在调查或处理该项 · 优化 🟨 中 优先度:中 labels Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
· 优化 处理中 开发者正在调查或处理该项 🟨 中 优先度:中
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants