更新:修改参数接口名
This commit is contained in:
@@ -194,12 +194,11 @@ export async function submitFeedback(data: IFeedbackForm) {
|
|||||||
* @param orderSn 订单号
|
* @param orderSn 订单号
|
||||||
* @param productId 产品ID
|
* @param productId 产品ID
|
||||||
*/
|
*/
|
||||||
export async function verifyGooglePay(priceTypeId: number, purchaseToken: string, orderSn: string) {
|
export async function verifyGooglePay(productId: number, purchaseToken: string, orderSn: string) {
|
||||||
console.log(priceTypeId, purchaseToken, orderSn);
|
|
||||||
const res = await mainClient.request<IApiResponse>({
|
const res = await mainClient.request<IApiResponse>({
|
||||||
url: 'pay/googlepay/googleVerify',
|
url: 'pay/googlepay/googleVerify',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
data: { priceTypeId, purchaseToken, orderSn }
|
data: { productId, purchaseToken, orderSn }
|
||||||
})
|
})
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -331,6 +331,7 @@
|
|||||||
* 校验订单
|
* 校验订单
|
||||||
*/
|
*/
|
||||||
const googleVerify = async () => {
|
const googleVerify = async () => {
|
||||||
|
console.log(typeof aloneItem.value.priceTypeId, typeof purchaseToken.value, typeof orderSn.value);
|
||||||
try {
|
try {
|
||||||
const obj = await verifyGooglePay(aloneItem.value.priceTypeId, purchaseToken.value, orderSn.value)
|
const obj = await verifyGooglePay(aloneItem.value.priceTypeId, purchaseToken.value, orderSn.value)
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
|
|||||||
Reference in New Issue
Block a user