Repository navigation
fix: 修复账号加群订阅后台任务创建入口 - #183
Merged
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
moeacgx
force-pushed
the
codex/fix-join-task-entry
branch
from
October 9, 2026 09:46
a2a7e5f to
04e818f
Compare
moeacgx
added a commit
that referenced
this pull request
Oct 9, 2026
## 本次版本主要更新 ### 修复问题 - 修复账号列表加群、订阅和启用 Bot 提交后台任务时报“该任务类型未开放标准创建入口”,由专用受保护接口规范参数、去重并计算任务数量。 - 手动登录触发 Telegram 人机验证时显示中文说明,界面及 SDK 日志不再输出原始挑战串;不绕过官方验证,正常登录和失败清理流程保持不变。 - 在统一图片解码入口前按真实文件头拒绝 TIFF/BigTIFF,阻断宿主相关解码风险;JPEG、PNG、WebP、EXIF 方向和原缩放输出保持,任务头像返回中文 HTTP400。 ### 新增功能 - 提供可选 wgcf+wireproxy 运维工具,共享容器运行多个用户态出口,支持独立注册、配置生成、启停、检测和面板逐账号绑定。 - 固定依赖及哈希、私有保存凭据;注册需要运营者确认条款,失败保留资料,绑定前核对真实占用,重新生成前等待对应停止回执。 - 同步开发、部署、API、配置、FAQ 和 MkDocs 导航;专用工具 CI 禁止 checkout 凭据持久化。 ## 验证与部署 Refs #174, #173, #97 实现 PR #183/#184/#185,集成 #186,安全补充 #188。最终 dev SHA:`c40fa648c402586ac4040cace1bd9eb069954631`。 - 协调者独立执行 Release solution build、599/599 后端测试、严格文档构建和差异检查,全部通过。前端生产构建及102/102测试通过,安全补充不修改前端。测试硬超时60秒。 - WireGuard Linux CI20/20、Docker构建和真实wireproxy配置解析通过;所有功能均经独立代理复核。自动审查意见已核实,不将跳过审查或机器人状态当成人工确认。 - 最终镜像构建:https://github.com/moeacgx/Telegram-Panel/actions/runs/37920864382 - 最终部署:https://github.com/moeacgx/Telegram-Panel/actions/runs/37921375590 - 运行镜像 `ghcr.io/moeacgx/telegram-panel:sha-c40fa64`,revision匹配;容器healthy、restartCount=0,dashboard/auth/me均200、版本1.31.79,管理员登录态可用。实际进程工作目录为/app,Core程序集SHA256与镜像内完全一致。 - 数据库quick_check=ok,10个账号、16个分类及原邮箱数据保留。部署前有SQLite一致性备份和旧镜像回滚点;本次没有新增数据库迁移。 - #174:旧版1.31.78实测HTTP400;新版专用API返回200,重复输入去重total=1,后台任务正常执行并记录不存在测试账号的预期明细。临时任务已清理,没有真实加群行为。 - 图片接口:真实文件头为TIFF、文件名/MIME伪装JPEG时返回中文400;正常PNG返回200并转换为可读取的JPEG。自有测试文件和目录已精确清理。 - #97:用户确认条款后,云端完成一份真实wgcf注册、配置生成、认证SOCKS5、Trace HTTP200/warp=on、重启后再验证及停止。UID10001、cap_drop=ALL、无公网端口;单出口瞬时内存26–28MiB,不作容量或固定IP承诺。验收容器已停止,注册资料私有保留。 ## 边界、依赖与回滚 #174 正式发版后关闭。#173 仍需真实账号完成官方验证后的反馈;#97 没有测试账号,未切换任何现有账号,真实账号绑定继续待验收。独立工具不是新增的面板一键管理页面,跨操作者强制一对一与global/direct并发限制见文档。 ImageSharp固定上一正式ZIP实际使用的3.1.12,未降级。其3.2.0确已于2026-10-09发布并同时回移安全修复及构建许可证要求,一手证据:[v3.2.0 Release](https://github.com/SixLabors/ImageSharp/releases/tag/v3.2.0)、[上游PR #3208](https://github.com/SixLabors/ImageSharp/pull/3208)。本轮实际全新还原3.2.0也触发了许可证门禁;旧搜索结果声称3.2.0不存在不适用于当前发布状态。没有许可证时不绕过检查。本次仅缓解宿主TIFF入口,不声称全部依赖漏洞修复,合法许可下升级仍需后续维护。构建仍有45项既有依赖、WindowsBase和分析警告。 回滚面板至上版时保留数据;WireGuard工具应先恢复账号路由再停止共享容器,并保留资料卷。
Closed
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.
账号列表提交加群、订阅或启用 Bot 时,旧前端把
user_join_subscribe发到仅接受标准可创建目录的/tasks,导致接口拒绝。新增管理员专用/accounts/chat-membership/tasks入口,前端直接提交账号和目标,服务端规范去重、校验操作并计算总数后创建后台任务;退出、退订和停用 Bot 同样生效。该类型仍不出现在通用新建任务目录,不改变模块创建合同。Refs #174
origin/dev=69c8a7017b6a79e5e91e2ec076dc4aba5bc713f0,更新 PR 前重新 fetch,behind=0。同步最新基线后的验证:
dotnet build TelegramPanel.sln -c Release --no-restore通过;存在已知 NuGet 安全、WindowsBase 及既有编译警告。dotnet test TelegramPanel.sln -c Release --no-build:579/579 通过,18 秒;新增专用入口 6 项覆盖加入/退出、去重计数、间隔边界、无效请求不落库。测试进程 60 秒硬超时。pnpm --dir frontend test:102/102 通过,60 秒硬超时;新增测试执行实际 API 方法并断言端点、请求与返回数据。pnpm --dir frontend run build通过;mkdocs build --strict通过;git diff --check通过。/tasks;初始后端检查曾被浮动依赖的许可错误阻断,未将其算作测试失败复现。尚未进行云端部署或真实 Telegram 加退群/Bot 行为验收。由主流程合入 dev 后统一部署验收,再发布 main;此 PR 不提前关闭 Issue。