Repository navigation
Conversation
iiijiashu
marked this pull request as draft
September 29, 2026 16:38
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.
问题与改动
批量「刷新资格」原先逐个账号请求,并在账号间固定等待 5 秒;后台额度刷新每 8 秒只处理一个账号。多个 Tauri 异步命令又直接执行阻塞 HTTP,账号多或网络较慢时等待会明显累积。验证码配置请求偶发连接超时后没有恢复入口,且会被自动领取误判为需要人工验证。
spawn_blocking,复用 HTTP 连接池。额度查询仅在明确的认证拒绝后尝试兼容凭据,网络/限流失败不再触发另一轮凭据遍历,同一轮不会重复请求相同接口与凭据。claimId,先注册结果等待再打开窗口,忽略旧会话事件并仅关闭对应验证窗口。按照阿里云接入要求,在加载 SDK 前设置AliyunCaptchaConfig。领取仍逐个完成,领取 POST 不会自动重发,资格条件与人工验证码要求保持原有行为。没有修改登录代理设置或 ZCode 客户端。
验证
cargo test --lib --locked -j 2,9 项测试通过,包含本地 HTTP 配置响应、有限重试/缓存、认证兼容回退与错误分类。npm test,14 项测试通过,覆盖 20 账号并发上限、失败继续、完成进度、重复点击、手动优先、单账号重试、旧会话事件和验证码恢复。npm run check:i18n、npm run build、git diff --check通过;新增前端 CI 检查。验证边界:浏览器验证使用模拟账号与请求,未实际领取线上额度,也未验证原生 WebView 的关闭事件顺序;以上结果不代表已验证线上服务在所有网络环境下的表现。
接入顺序依据:阿里云 Web/H5 V3 客户端接入。