Skip to content

fix: close remaining commercial review financial gaps - #13

Merged
YunfanGoForIt merged 4 commits into
mainfrom
fix/commercial-review-blockers-20261021
Oct 22, 2026
Merged

YunfanGoForIt merged 4 commits into
mainfrom
fix/commercial-review-blockers-20261021

Conversation

@YunfanGoForIt

Copy link
Copy Markdown

⚠️ 提交说明 / PR Notice

📝 变更描述 / Description

本 PR 收口商业化对抗性审查中仍可直接影响资金安全和运营恢复的两项问题:手工充值补单提升到 Root 权限,退款对账任务把终态凭据清理与当前失败告警解耦。前者避免普通管理员直接铸造余额,后者避免单个异常凭据阻塞所有已完成退款的保留期清理;现有退款失败和歧义状态仍保持告警与人工复核,不会被自动删除。

🚀 变更类型 / Type of change

  • 🐛 Bug 修复 (Bug fix)
  • ✨ 新功能 (New feature)
  • ⚡ 性能优化 / 重构 (Refactor)
  • 📝 文档更新 (Documentation)

🔗 关联任务 / Related Issue

  • Closes #

✅ 提交前检查项 / Checklist

  • 人工确认: 我已亲自整理并撰写此描述,没有直接粘贴未经处理的 AI 输出。
  • 非重复提交: 已核对现有 PR,变更是对商业化审查报告遗留项的后续修复。
  • Bug fix 说明: 手工充值补单属于资金操作,权限边界与退款复核保持一致;清理逻辑保持账务证据保留规则。
  • 变更理解: 已理解路由鉴权、系统任务告警和退款凭据状态机的工作方式。
  • 范围聚焦: 仅包含权限收紧、退款清理顺序和对应回归测试。
  • 本地验证: go test ./...(1406 passed)。
  • 安全合规: 未包含敏感凭据。

📸 运行证明 / Proof of Work

  • go test ./...:1406 个测试通过。
  • 退款任务回归测试确认:存在告警时,超过 30 天的 succeeded 终态凭据仍会按保留策略清理;prepared/review 等不确定状态仍保留。

@YunfanGoForIt
YunfanGoForIt merged commit f2b1066 into main Oct 22, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant