更新:loading加载时机问题
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
// api/modules/user.ts
|
||||
import { mainClient } from '@/api/clients/main'
|
||||
import { paymentClient } from '@/api/clients/payment'
|
||||
import type { IApiResponse } from '@/api/types'
|
||||
import type {
|
||||
IUserInfo,
|
||||
@@ -196,7 +197,7 @@ export async function submitFeedback(data: IFeedbackForm) {
|
||||
*/
|
||||
export async function verifyGooglePay(productId: number, purchaseToken: string, orderSn: string) {
|
||||
console.log(productId, purchaseToken, orderSn);
|
||||
const res = await mainClient.request<IApiResponse>({
|
||||
const res = await paymentClient.request<IApiResponse>({
|
||||
url: 'pay/googlepay/googleVerify',
|
||||
method: 'POST',
|
||||
data: { productId, purchaseToken, orderSn }
|
||||
@@ -278,7 +279,7 @@ export async function getTransactionDetailsList(current : number, limit : number
|
||||
*/
|
||||
export async function getPlaceOrder(data: object) {
|
||||
|
||||
const res = await mainClient.request<IApiResponse>({
|
||||
const res = await paymentClient.request<IApiResponse>({
|
||||
url: '/book/buyOrder/placeOrder',
|
||||
method: 'POST',
|
||||
data: data
|
||||
|
||||
Reference in New Issue
Block a user