Explorar o código

查询次数减少

shish hai 2 semanas
pai
achega
ea7b5ab2ff

+ 4 - 4
ghsApp/src/admin/billing/toPay.vue

@@ -246,7 +246,7 @@ export default {
                     that.returnCode = res.data.returnCode ? res.data.returnCode : ''
                     that.goPay = 2
                     
-                    // 11105(用户输入密码中) 或 10000(其它密码状态),启动4秒一次、最多4次(16秒)的自动复查定时器
+                    // 11105(用户输入密码中) 或 10000(其它密码状态),启动4秒一次、最多3次(12秒)的自动复查定时器
                     if (that.returnCode == 'BBS11105' || that.returnCode == 'BBS10000') {
                         that.startPolling()
                     } else {
@@ -268,7 +268,7 @@ export default {
     },
     /**
      * 启动低频后台付款复查定时器
-     * 4秒轮询一次,限查4次,极大地减轻服务器压力的同时保证业务流闭环
+     * 4秒轮询一次,限查3次,极大地减轻服务器压力的同时保证业务流闭环
      */
     startPolling(){
         this.clearPolling()
@@ -279,7 +279,7 @@ export default {
         let that = this;
         this.pollingTimer = setInterval(() => {
             that.pollingCount++
-            if (that.pollingCount > 4) {
+            if (that.pollingCount > 3) {
                 that.clearPolling()
                 that.isPaymentProcessing = false
                 that.goPay = 2
@@ -287,7 +287,7 @@ export default {
                 return
             }
 
-            that.remindText = `正在自动复查支付结果 (${that.pollingCount}/4)...`
+            that.remindText = `正在自动复查支付结果 (${that.pollingCount}/3)...`
 
             codePayVerify({id:that.orderId}).then(res=>{
                 if(res.code == 1){

+ 3 - 3
ghsPad/src/pages/home/components/toPay.vue

@@ -206,7 +206,7 @@ export default {
         },
         /**
          * 启动自动后台付款复查定时器
-         * 职责:降低轮询频率至4秒,且将次数限为4次(总计16秒),极大地减轻服务器压力的同时保证业务完整
+         * 职责:降低轮询频率至4秒,且将次数限为3次(总计12秒),极大地减轻服务器压力的同时保证业务完整
          */
         startPolling(){
             this.clearPolling()
@@ -217,7 +217,7 @@ export default {
             let that = this
             this.pollingTimer = setInterval(() => {
                 that.pollingCount++
-                if (that.pollingCount > 4) {
+                if (that.pollingCount > 3) {
                     // 超时未确认,停止轮询,允许商户手动操作或重新扫码
                     that.clearPolling()
                     that.isPaymentProcessing = false
@@ -227,7 +227,7 @@ export default {
                 }
                 
                 // 界面上展示当前自动复查的进度,提升收银员体验
-                that.remindText = `正在自动复查支付结果 (第 ${that.pollingCount}/4 次)...`
+                that.remindText = `正在自动复查支付结果 (第 ${that.pollingCount}/3 次)...`
 
                 codePayVerify({id:that.orderId}).then(res=>{
                     if(res.code == 1){

+ 4 - 4
hdApp/src/admin/billing/toPay.vue

@@ -174,7 +174,7 @@ export default {
                     that.returnCode = res.data.returnCode ? res.data.returnCode : ''
                     that.goPay = 2
                     
-                    // 11105(用户输入密码中) 或 10000(其它密码状态),启动4秒一次、最多4次(16秒)的自动复查定时器
+                    // 11105(用户输入密码中) 或 10000(其它密码状态),启动4秒一次、最多3次(12秒)的自动复查定时器
                     if (that.returnCode == 'BBS11105' || that.returnCode == 'BBS10000') {
                         that.startPolling()
                     } else {
@@ -196,7 +196,7 @@ export default {
     },
     /**
      * 启动低频后台付款复查定时器
-     * 4秒轮询一次,限查4次,极大地减轻服务器压力的同时保证业务流闭环
+     * 4秒轮询一次,限查3次,极大地减轻服务器压力的同时保证业务流闭环
      */
     startPolling(){
         this.clearPolling()
@@ -207,7 +207,7 @@ export default {
         let that = this
         this.pollingTimer = setInterval(() => {
             that.pollingCount++
-            if (that.pollingCount > 4) {
+            if (that.pollingCount > 3) {
                 that.clearPolling()
                 that.isPaymentProcessing = false
                 that.goPay = 2
@@ -215,7 +215,7 @@ export default {
                 return
             }
 
-            that.remindText = `正在自动复查支付结果 (${that.pollingCount}/4)...`
+            that.remindText = `正在自动复查支付结果 (${that.pollingCount}/3)...`
 
             codePayVerify({id:that.orderId}).then(res=>{
                 if(res.code == 1){

+ 3 - 3
hdPad/src/pages/home/components/toPay.vue

@@ -187,7 +187,7 @@ export default {
         },
         /**
          * 启动自动后台付款复查定时器
-         * 职责:降低轮询频率至4秒,且将次数限为4次(总计16秒),极大地减轻服务器压力的同时保证业务完整
+         * 职责:降低轮询频率至4秒,且将次数限为3次(总计12秒),极大地减轻服务器压力的同时保证业务完整
          */
         startPolling(){
             this.clearPolling()
@@ -198,7 +198,7 @@ export default {
             let that = this
             this.pollingTimer = setInterval(() => {
                 that.pollingCount++
-                if (that.pollingCount > 4) {
+                if (that.pollingCount > 3) {
                     // 超时未确认,停止轮询,允许商户手动操作或重新扫码
                     that.clearPolling()
                     that.isPaymentProcessing = false
@@ -208,7 +208,7 @@ export default {
                 }
                 
                 // 界面展示当前自动复查的进度,提升收银员体验
-                that.remindText = `正在自动复查支付结果 (第 ${that.pollingCount}/4 次)...`
+                that.remindText = `正在自动复查支付结果 (第 ${that.pollingCount}/3 次)...`
 
                 codePayVerify({id:that.orderId}).then(res=>{
                     if(res.code == 1){