fix(支付): 在没查询到支付结果的情况下按芋艿要求加回3次共4.5秒的支付结果轮询

Signed-off-by: 王佳星 <417783514@qq.com>
pull/155/head
王佳星 2025-08-07 23:31:19 +00:00 committed by Gitee
parent 82b0127fab
commit a335b2b8dc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 10 additions and 0 deletions

View File

@ -137,6 +137,16 @@
return;
}
}
// 2.1
if (state.counter < 3 && state.result === 'unpaid') {
setTimeout(() => {
getOrderInfo(id);
}, 1500);
}
// 2.2
if (state.counter >= 3) {
state.result = 'failed';
}
}
function onOrder() {