提交 eb90ace2 编写于 作者: VK1688's avatar VK1688

getOrder 最大等待时间为20秒

上级 c1822c47
......@@ -411,7 +411,7 @@ class service {
if (typeof payOrderInfo.user_order_success == "undefined" && await_notify) {
let whileTime = 0; // 当前循环已执行的时间(毫秒)
let whileInterval = 500; // 每次循环间隔时间(毫秒)
let maxTime = 5000; // 循环执行时间超过此值则退出循环(毫秒)
let maxTime = 20000; // 循环执行时间超过此值则退出循环(毫秒)
while (typeof payOrderInfo.user_order_success == "undefined" && whileTime <= maxTime) {
await libs.common.sleep(whileInterval);
whileTime += whileInterval;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册