feat: add subscription redemption codes and quota limits - #2
Merged
3metaJun merged 4 commits intoAug 3, 2026
Merged
Conversation
Owner
Author
|
Independent subagent review: APPROVED after three rounds. Verified redemption bearer handling, AutoMigrate, Creem weekly quota renewal snapshots, cross-provider checkout reservation, late verified payment delivery, no-store headers, and built-in frontend integration. Tests: go test ./model ./controller ./router -count=1; focused checkout/redemption/Creem tests -count=10; full Docker build. |
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.
📝 变更描述 / Description
为 metaproxy 的一次性月度订阅增加可批量生成、撤销和兑换的激活码。兑换码仅保存 SHA-256 摘要,兑换时在事务内锁定库存并创建原生订阅;套餐月额度、周额度、分组和期限在生成时冻结,避免后续改套餐影响已售库存。
同时补齐订阅周额度、单用户同时一个生效套餐、钱包余额回退等约束,并让各支付成功路径统一走同一套订阅创建逻辑。管理端套餐表单可配置这些字段。镜像工作流修正为发布到生产实际使用的
metaproxy-newapi包。🚀 变更类型 / Type of change
🔗 关联任务 / Related Issue
✅ 提交前检查项 / Checklist
📸 运行证明 / Proof of Work
go test ./model ./controller ./router -count=1