• Joined on 2026-05-02
wangdl pushed to main at wangdl/api-server 2026-06-27 12:42:46 +08:00
05cf369bee feat: 本地开发环境配置 + Python 3.9 兼容修复
wangdl pushed to main at wangdl/api-server 2026-06-27 09:20:51 +08:00
cfa6c6bc9c fix(membership): remove broken iOS import from controller spec
wangdl pushed to main at wangdl/api-server 2026-06-27 09:19:12 +08:00
d2af3f3dcf feat(quota): enforce file size and storage quota on upload lifecycle
wangdl pushed to main at wangdl/api-server 2026-06-27 09:17:31 +08:00
8495de77f8 fix(quota): change OCR/Vision pre-check from amount=0 to amount=1
wangdl pushed to main at wangdl/api-server 2026-06-26 20:59:36 +08:00
18ef334f0d fix(quota): replace hardcoded 1GB storage with EffectiveQuota lookup
wangdl pushed to main at wangdl/api-server 2026-06-26 20:57:21 +08:00
ac7a2201ab feat(quota): add OCR/Vision pre-check at document import controller
wangdl pushed to main at wangdl/api-server 2026-06-26 20:34:35 +08:00
1d6a04a8b3 test(membership): add quota, guard, and controller unit tests
wangdl pushed to main at wangdl/api-server 2026-06-26 20:28:32 +08:00
fef0695845 feat(quota): wire knowledge_base_count quota into KB controller
wangdl pushed to main at wangdl/ios-projects 2026-06-26 20:28:11 +08:00
3e8c4dfa63 fix(membership): replace hardcoded 1GB storage with API-driven quota
wangdl pushed to main at wangdl/api-server 2026-06-26 20:21:52 +08:00
807488a929 feat(quota): wire ai_chat_messages quota into chat controller
wangdl pushed to main at wangdl/api-server 2026-06-26 20:19:40 +08:00
6a5ab31ddd fix(quota): remove duplicate quiz_generation reserve in router
wangdl pushed to main at wangdl/api-server 2026-06-26 20:10:39 +08:00
35e134d9e6 fix(membership): reorder constructor params to fix TS1016
wangdl pushed to main at wangdl/ios-projects 2026-06-26 20:08:44 +08:00
e2511855fe feat(membership): add StoreKit subscription and membership center
wangdl pushed to main at wangdl/api-server 2026-06-26 20:03:09 +08:00
9566de63a2 feat(membership): implement subscription entitlement and quota backend
wangdl commented on issue wangdl/api-server#352 2026-06-25 21:08:19 +08:00
[M-MEMBER-01-GATE] 会员订阅、权益、额度与恢复购买最终验收

M-MEMBER-01-GATE 审核结果

CONDITIONAL PASS

证据

  • 编译:0 errors
  • Schema:valid 🚀
  • 后端单元测试:938 passed / 0 failed
  • JWS 证书链验证:x5c…
wangdl commented on issue wangdl/api-server#351 2026-06-25 20:58:08 +08:00
[M-MEMBER-01] 完成 iOS 会员中心、额度展示、购买状态与合规入口

开发完成评论

完成内容

1. MembershipView(会员中心)

  • 状态处理:loading / loaded / error(3 种顶层状态)
  • 当前计划卡片:Premium/Free 区分、到…
wangdl commented on issue wangdl/api-server#350 2026-06-24 22:24:14 +08:00
[M-MEMBER-01] 实现 iOS StoreKit 2 核心、交易监听、恢复与测试基础

开发完成评论

完成内容

1. StoreKitManager(核心)

  • loadProducts():加载 premium_monthly / premium_yearly
  • purchase(product, appAccountToken):发起购买 +…
wangdl commented on issue wangdl/api-server#349 2026-06-24 22:08:42 +08:00
[M-MEMBER-01] 将 AI、Chat、OCR、Vision、存储和知识库接入统一额度

N1 修复:quiz_generation 已接线(参考集成)

接线

  • QuizExecutionRouter.generateQuiz()quotaGuard.check("quiz_generation")
  • 额度不足 → 抛出 `BadRequestExceptio…
wangdl commented on issue wangdl/api-server#349 2026-06-24 21:54:37 +08:00
[M-MEMBER-01] 将 AI、Chat、OCR、Vision、存储和知识库接入统一额度

开发完成评论

完成内容

1. QuotaGuardService

  • check(userId, quotaType, operationId, amount) → reserve + 返回 QuotaCheckResult
  • confirm(operationId) → commit -…
wangdl commented on issue wangdl/api-server#348 2026-06-24 21:48:08 +08:00
[M-MEMBER-01] 实现 EffectiveQuota、额度预占返还与 Legacy/Shadow/Enforced

开发完成评论

完成内容

1. EffectiveQuotaService

  • computeEffectiveQuota(userId):Admin Override > PlanQuota > Free 默认值
  • MembershipPlan.planQuotas[]