Browse Source

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

licc 1 month ago
parent
commit
eff0cca7cf
2 changed files with 2 additions and 2 deletions
  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