更新:ios支付
This commit is contained in:
@@ -7,8 +7,8 @@ export const ENV = process.env.NODE_ENV || 'development';
|
||||
*/
|
||||
const BASE_URL_MAP = {
|
||||
development: {
|
||||
MAIN: 'http://192.168.110.100:9300/pb/', // 张川川
|
||||
//MAIN: 'https://global.nuttyreading.com/', // 线上
|
||||
//MAIN: 'http://192.168.110.100:9300/pb/', // 张川川
|
||||
MAIN: 'https://global.nuttyreading.com/', // 线上
|
||||
// PAYMENT: 'https://dev-pay.example.com', // 暂时用不到
|
||||
// CDN: 'https://cdn-dev.example.com', // 暂时用不到
|
||||
},
|
||||
|
||||
@@ -357,4 +357,22 @@ export async function getUserContributionByTypeList(current : number, limit : nu
|
||||
data: { current, limit, type, }
|
||||
})
|
||||
return res
|
||||
}
|
||||
|
||||
/**
|
||||
* ios支付
|
||||
* @param transactionId 支付交易id
|
||||
* @param productId 商品id
|
||||
* @param orderId 订单id
|
||||
* @param receiptData 苹果返回收据
|
||||
* @param customerOid 用户id
|
||||
* @return
|
||||
*/
|
||||
export async function getIosPayment(transactionId : string, productId : string, orderId : string, receiptData : string, customerOid : string) {
|
||||
const res = await mainClient.request<IApiResponse>({
|
||||
url: 'Ipa/veri/',
|
||||
method: 'POST',
|
||||
data: { transactionId, productId, orderId, receiptData, customerOid}
|
||||
})
|
||||
return res
|
||||
}
|
||||
Reference in New Issue
Block a user