{"content":"fix 4d69b46 — PayPal capture 前置状态守卫(P1)\n\nhandleOrderApproved 的 me subscription/topup 两条路径在 capture 前不查本地单状态:janitor 2h 关单后买家仍在 PayPal 批准页完成付款 → APPROVED 事件到来 → 服务端照常 capture → 钱被扣走 → credit 路径拒收 closed 单 → 用户付了钱、永不入账、无退款闭环(traffic recharge 路径反而有检查,属两条新路径的遗漏)。\n\n修复:hook 结构新增 PayPalCaptureGuard,me_service 注册 closed 单阻止 capture(告警 SKIPPED,买家不被扣款,订单留 ops 处理);credited 单放行(recapture 短路于 ORDER_ALREADY_CAPTURED + gatewayTxnId UNIQUE 双保险)。+ DB 回归测试覆盖订阅/充值两模型的 created/closed/credited 三态。","contentType":"text/plain;utf-8","attachments":[],"quotePin":""}