更新:修改参数接口名

This commit is contained in:
2025-11-27 19:54:45 +08:00
parent 878e49dc2e
commit 12de098e10
2 changed files with 3 additions and 3 deletions

View File

@@ -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
} }

View File

@@ -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({