@@ -45,9 +45,9 @@ export function createPay(data) { | |||||
* @param orderNumber | * @param orderNumber | ||||
* @return: data | * @return: data | ||||
*/ | */ | ||||
export function getOrderStatus(orderNumber) { | |||||
export function getOrderStatus(orderNumber, payVendor) { | |||||
return request({ | return request({ | ||||
url: `api/productOrder/findStatus?orderNumber=${orderNumber}`, | |||||
url: `api/productOrder/findStatus?orderNumber=${orderNumber}&payVendor=${payVendor}`, | |||||
method: 'get' | method: 'get' | ||||
}) | }) | ||||
} | } |
@@ -195,7 +195,8 @@ const startPay = (data) => { | |||||
const getStatusOfOrder = async (orderNumber) => { | const getStatusOfOrder = async (orderNumber) => { | ||||
try { | try { | ||||
const res = await getOrderStatus(orderNumber); | |||||
let payVendor = userInfoModulesPinia.platForm == 2 ? 1 : 5; | |||||
const res = await getOrderStatus(orderNumber, payVendor); | |||||
console.log(res, "getStatusOfOrder"); | console.log(res, "getStatusOfOrder"); | ||||
return res.data.orderStatus; | return res.data.orderStatus; | ||||
} catch (error) { | } catch (error) { | ||||
@@ -1,7 +1,8 @@ | |||||
import { userInfoModules } from "@/store/modules/userInfo"; | import { userInfoModules } from "@/store/modules/userInfo"; | ||||
import { store } from '@/store/index'; | import { store } from '@/store/index'; | ||||
const BASE_URL = 'https://test.metavatar.cc/C/'; | |||||
// const BASE_URL = 'https://test.metavatar.cc/C/'; | |||||
const BASE_URL = 'https://mtest.metavatar.cc/C/'; | |||||
const userInfoModulesPinia = userInfoModules(store); | const userInfoModulesPinia = userInfoModules(store); | ||||
// const BASE_URL = 'https://test.metavatar.cc/'; | // const BASE_URL = 'https://test.metavatar.cc/'; | ||||