docs: 移除支付网关禁止事项,新增支付系统开发约定
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -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` 或类型错误抑制
|
||||
- 添加支付网关集成
|
||||
- 添加审计日志
|
||||
|
||||
### 必须事项
|
||||
|
||||
Reference in New Issue
Block a user