Chore:移除 ClientToken & 对 ModLaunch 刷新请求部分进行解耦合 #5508
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
因为规范中 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