增加支付宝支付相关页面和程序

This commit is contained in:
2026-06-10 11:33:23 +08:00
parent d5a7ba8f14
commit 913dfee9e0
9 changed files with 444 additions and 96 deletions
+8
View File
@@ -319,6 +319,14 @@ export async function getRechargePackages(): Promise<any[]> {
return api.get('/recharge-packages');
}
export async function createRechargeOrder(planId: string, method: string = 'wechat'): Promise<any> {
return api.post('/payments/recharge', { plan: planId, method });
}
export async function getPaymentOrders(): Promise<any[]> {
return api.get('/payments/orders');
}
export async function getCreditRatios(): Promise<any[]> {
return api.get('/credits/ratios');