mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-03 09:50:21 +08:00
feat(payments): 增加兑换码与支付适配框架 (#299)
* feat(payments): 增加兑换码与支付适配框架 * fix(ci): 对齐 Rust 1.95 lint 与格式要求 * fix(payments): harden redeem code wallet credits --------- Co-authored-by: fawney19 <elky0401@gmail.com>
This commit is contained in:
@@ -358,12 +358,13 @@ pub(super) fn classify_public_support_route(
|
||||
} else if method == http::Method::POST
|
||||
&& matches!(
|
||||
normalized_path,
|
||||
"/api/wallet/recharge" | "/api/wallet/refunds"
|
||||
"/api/wallet/recharge" | "/api/wallet/refunds" | "/api/wallet/redeem"
|
||||
)
|
||||
{
|
||||
let route_kind = match normalized_path {
|
||||
"/api/wallet/recharge" => "create_recharge_order",
|
||||
"/api/wallet/refunds" => "create_refund",
|
||||
"/api/wallet/redeem" => "redeem",
|
||||
_ => "create_recharge_order",
|
||||
};
|
||||
Some(classified(
|
||||
|
||||
Reference in New Issue
Block a user