Open
Conversation
Collaborator
|
可以加一行 close #8018 有效期的话,可以在兑换 Minecraft 访问令牌那段改, API 有个 expires_in 字段 |
Contributor
Author
没看懂写入ini文件和注册表的函数 没发现其他保存内容的地方 也不敢轻易修改注册表和ini。并且尝试修改还报错..所以还是不能达到下一次重新启动检测是否到期 对于启动游戏后隐藏PCL的用户有效 我想这就够了 |
Collaborator
|
你可以去 ModSetup 找一个微软登录相关的配置项,然后复制一个改成 CacheMsOAuthExpires 然后就可以用 Setup 来保存配置项 |
wyc-26
suggested changes
Mar 5, 2026
| Dim AccessToken As String = MsLoginStep4(Tokens) | ||
| Dim MinecraftAPI As String() = MsLoginStep4(Tokens) '更改了第4步验证的返回格式,第一项为Minecraft Access Token,第二项为Token有效期 | ||
| Dim AccessToken As String = MinecraftAPI(0) 'Access Token | ||
| McLoginMsRefreshTime = GetTimeMs() + MinecraftAPI(1) 'Token 到期时间 |
Collaborator
Contributor
Author
明白。周末再研究研究,这两天还有功课。 |
Contributor
Author
|
现在将失效时间保存到了注册表。所以重启也不会重新登录了(如果未过期)。 |
LinQingYuu
suggested changes
Mar 6, 2026
Co-authored-by: 薄奚梦灵 <[email protected]>
|
👍 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

issue#8018
如果是游玩时最小化时才有用。不然重新打开就又会刷新了。将10分钟延长到了5小时,一般是一上午或一下午的时间。只是延长了时间,.NET工程的JWT令牌有效期检测不知道怎么弄。我能想到的解决方案就是这样了。