feat(scratch): 新增刮刮乐战报查询/登录与群内亏损排行 - #26
Open
lingweiliang2510579032 wants to merge 2 commits into
Open
Conversation
- nte刮刮乐:查询战报(首次自动引导完美世界账号登录,登录后直接查询) - nte刮刮乐登录:重新绑定/更换完美世界账号 - nte刮刮乐排行:统计群内塔吉多已登录账号的刮刮乐亏损排行 - 查询链接一次性:成功查询后失效;含 60s 间隔/每日 30 次限频 - 验证码组件本地化:手机端走服务器中转取图与校验,静态资产随代码提交 - 不依赖塔吉多也能查询;资源目录缺失时静默跳过挂载,不影响 NTEUI 原有功能
for more information, see https://pre-commit.ci
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.
功能说明
新增「刮刮乐」战报查询功能,三个固定命令:
nte刮刮乐— 查询刮刮乐战报;首次使用会发送完美世界账号登录链接,登录绑定后再次发送即直接查询nte刮刮乐登录— 重新绑定 / 更换完美世界账号nte刮刮乐排行— 统计群内塔吉多已登录账号的刮刮乐亏损排行(亏得越多排名越高,不依赖塔吉多也能查询)主要实现
NTEUID/nte_scratch/:新模块(命令注册 + 登录/查询路由 + 战报卡片渲染 + 完美世界客户端)nteuser.wm_cookieNTEUID/templates/scratch_login.html/scratch_query.html:登录与查询网页nteuser表启动时自动迁移新增wm_cookie / wm_net / wm_cost / wm_gain / wm_updated_atnte_help/help.json「其他」栏新增三条命令说明验证码说明(重要)
手机端(QQ 内置浏览器等)无法直连完美世界验证码服务(
captchas.wanmei.com),因此:/nte/scratch/mCaptchaProxy/*中转路由,带用户 Cookie 代为取图/校验NTEUID/nte_scratch/static/nte_captcha/(17 个文件,约 0.35MB),无需额外部署不影响原有功能
nte_scratch/子包内,由 gsuid_core 自动加载;即使该模块加载失败也只跳过自身,不影响 NTEUI 其他功能已验证