2023-12-15 16:09:01 +00:00
|
|
|
import request from '@/sheep/request';
|
|
|
|
|
|
|
|
const PayOrderApi = {
|
|
|
|
// 获得支付订单
|
|
|
|
getOrder: (id) => {
|
|
|
|
return request({
|
2024-01-20 05:13:28 +00:00
|
|
|
url: '/pay/order/get',
|
2023-12-15 16:09:01 +00:00
|
|
|
method: 'GET',
|
|
|
|
params: { id }
|
|
|
|
});
|
|
|
|
},
|
|
|
|
// 提交支付订单
|
|
|
|
submitOrder: (data) => {
|
|
|
|
return request({
|
2024-01-20 05:13:28 +00:00
|
|
|
url: '/pay/order/submit',
|
2023-12-15 16:09:01 +00:00
|
|
|
method: 'POST',
|
|
|
|
data
|
|
|
|
});
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
export default PayOrderApi;
|