From 0ef0f710498b72d3a23273e36cba86dbf40a06bc Mon Sep 17 00:00:00 2001 From: Milky0217 Date: Fri, 17 Apr 2026 12:56:26 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E7=A7=BB=E9=99=A4=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E7=BD=91=E5=85=B3=E7=A6=81=E6=AD=A2=E4=BA=8B=E9=A1=B9=EF=BC=8C?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=94=AF=E4=BB=98=E7=B3=BB=E7=BB=9F=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E7=BA=A6=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- AGENTS.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index 5ff0543..847513e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -118,6 +118,11 @@ PUT /api/admin/users/{id}/payment } ``` +### 支付处理器 +- 文件:`src/handlers/payment.rs` +- `mock-confirm` 接口仅用于测试环境,未来替换为真实微信支付回调时只需修改此函数 +- 套餐金额常量定义在 `payment.rs` 的 `get_package_info()` 函数中 + ## 代码模式 ### 处理器模式 @@ -222,7 +227,6 @@ APP_RUST_LOG=info - 在 JWT Claims 中添加 `is_admin`(必须查询数据库) - 信任 JWT 中的 `is_paid` 来做配额决策(必须查询数据库) - 使用 `as any`、`@ts-ignore` 或类型错误抑制 -- 添加支付网关集成 - 添加审计日志 ### 必须事项