Compare commits

..

4 Commits

Author SHA1 Message Date
guke 946efe7d64 test(withdraw): 补 invite_cash 并发在途用例 + 清理过期注释
审查发现:取消「一人一单」后,create_withdraw 的档位闸注释与
test_invite_cash_withdraw 中若干注释仍引用已删除的「在途互斥」。
- create_withdraw 注释去掉「在途互斥」措辞
- test_two_accounts_withdraw_independent 文案修正;source_filter
  用例移除已非必需的 reject(断言不变)
- 新增 test_invite_cash_multiple_in_flight_allowed:两笔 invite_cash
  在途并存、各扣邀请奖励金、不串金币现金

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 16:12:25 +08:00
guke 93350f4d9b feat(withdraw): 允许在途提现时继续提交新申请
取消「同一用户同时仅一笔在途提现」限制:删应用层在途单检查 +
删 DB 分区唯一索引 ux_withdraw_order_user_active + 清理死代码
(_WITHDRAW_ACTIVE_STATUSES / WithdrawTooFrequentError)。
先扣款、coin_cash 每日档位次数、out_bill_no 幂等等既有约束不变。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 15:49:17 +08:00
guke beead5cf1e docs: 提现允许在途并存 实现计划
单任务 TDD 计划:删应用层在途检查 + 删 DB 分区唯一索引 + 迁移 + 测试。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 15:38:42 +08:00
guke 429204312b docs: 提现允许在途时继续提交申请 设计spec
取消「同一用户同时仅一笔在途提现」限制的设计文档:
删应用层在途单检查 + 删 DB 分区唯一索引 + 清理死代码。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-24 15:27:39 +08:00
@@ -1,6 +1,6 @@
"""drop withdraw active-order partial unique index (allow multiple in-flight withdrawals)
Revision ID: drop_withdraw_active_uniq_idx
Revision ID: drop_withdraw_active_unique_index
Revises: d8dd2106e438
Create Date: 2026-07-24 00:00:00.000000
@@ -12,7 +12,7 @@ import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision: str = "drop_withdraw_active_uniq_idx"
revision: str = "drop_withdraw_active_unique_index"
down_revision: Union[str, Sequence[str], None] = "d8dd2106e438"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None