充值页面
This commit is contained in:
@@ -215,3 +215,31 @@ export async function verifyIAP(data: any) {
|
||||
})
|
||||
return res
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取充值列表
|
||||
* @param type 固定值 point
|
||||
* @param qudao 支付类型
|
||||
*/
|
||||
export async function getBookBuyConfigList(type: string, qudao: string) {
|
||||
const res = await mainClient.request<IApiResponse>({
|
||||
url: 'common/bookBuyConfig/getBookBuyConfigList',
|
||||
method: 'POST',
|
||||
data: {type, qudao}
|
||||
})
|
||||
return res
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取隐私协议
|
||||
* @param id 101众妙之门隐私政策
|
||||
*/
|
||||
export async function getAgreement(id: string) {
|
||||
console.log(id, 'id');
|
||||
const res = await mainClient.request<IApiResponse>({
|
||||
url: '/sys/agreement/getAgreement',
|
||||
method: 'POST',
|
||||
data: {id}
|
||||
})
|
||||
return res
|
||||
}
|
||||
Reference in New Issue
Block a user