【功能优化】支付:查询支付订单时,增加 sync 主动轮询,解决支付宝、微信存在延迟的问题
This commit is contained in:
@@ -73,13 +73,14 @@ const OrderApi = {
|
||||
data,
|
||||
});
|
||||
},
|
||||
// 获得订单
|
||||
getOrder: (id) => {
|
||||
// 获得订单详细:sync 是可选参数
|
||||
getOrderDetail: (id, sync) => {
|
||||
return request({
|
||||
url: `/trade/order/get-detail`,
|
||||
method: 'GET',
|
||||
params: {
|
||||
id,
|
||||
sync,
|
||||
},
|
||||
custom: {
|
||||
showLoading: false,
|
||||
|
||||
Reference in New Issue
Block a user