修改前台动态获取支付是否开启
This commit is contained in:
@@ -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 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user