【功能优化】支付:查询支付订单时,增加 sync 主动轮询,解决支付宝、微信存在延迟的问题

This commit is contained in:
YunaiV
2024-09-24 13:00:46 +08:00
parent a1995c88e8
commit ca1926a732
6 changed files with 26 additions and 18 deletions
+3 -2
View File
@@ -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,