feat: 支持绝区零(ZZZ)签到 & cookie_token 自动刷新 - #181
Open
under-the-ocean wants to merge 1 commit into
Open
Conversation
- mysTool.js: 补全 zzz(绝区零) 配置(biz=nap_cn/actid/signUrl/getReferer) - mihoyoApi.js: 签到请求头增加 x-rpc-signgame: zzz (否则返回-500001) - user.js: 自动签到列表加入绝区零 - 新增 tokenRefresh.js: 每8-12小时用stoken自动刷新cookie_token, 解决签到-100失效问题 - apps/index.js: 集成 token 刷新定时任务
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.
改动内容
1. 绝区零(ZZZ)签到支持
zzz配置(biz: 'nap_cn'、actid: 'e202406242138391'、完整的signUrl/)x-rpc-signgame: zzz(缺少会返回 -500001)/event/luna/zzz/info、/event/luna/zzz/signx-rpc-signgame: zzz请求头nap_cn(不是zzz_cn)2. cookie_token 自动刷新
测试情况
已在本地 bot 实测:绝区零签到成功(角色 uid 18704632,累计签到正常);token 刷新已实际验证兑换成功。