修改前台动态获取支付是否开启

This commit is contained in:
2026-06-10 11:49:41 +08:00
parent 429a7cf561
commit de494060ad
4 changed files with 94 additions and 37 deletions
+4
View File
@@ -319,6 +319,10 @@ export async function getRechargePackages(): Promise<any[]> {
return api.get('/recharge-packages');
}
export async function getPaymentMethods(): Promise<{ alipay: boolean; wechat: boolean }> {
return api.get('/payments/methods');
}
export async function createRechargeOrder(planId: string, method: string = 'wechat'): Promise<any> {
return api.post('/payments/recharge', { plan: planId, method });
}