瀏覽代碼

延长轮训查询支付状态的时间

licc 1 月之前
父節點
當前提交
eff0cca7cf
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/views/order/console.vue
  2. 1 1
      src/views/order/index.vue

+ 1 - 1
src/views/order/console.vue

@@ -470,7 +470,7 @@ const handleScanInput = (event: KeyboardEvent) => {
 
 // 定义查询支付状态的函数
 const queryPayStatusWithRetry = (data): Promise<boolean> => {
-    const intervals = [3000, 5000, 10000]
+    const intervals = [3000, 5000, 10000, 10000, 10000, 10000, 10000]
     let currentIndex = 0
     payingDialogVisible.value = true
 

+ 1 - 1
src/views/order/index.vue

@@ -253,7 +253,7 @@ const handleScanInput = (event: KeyboardEvent) => {
 
 // 定义查询支付状态的函数
 const queryPayStatusWithRetry = (data): Promise<boolean> => {
-    const intervals = [3000, 5000, 10000]
+    const intervals = [3000, 5000, 10000, 10000, 10000, 10000, 10000]
     let currentIndex = 0
     payingDialogVisible.value = true