Forráskód Böngészése

云机挂载时轮询接口

huangxiaojing 2 éve%!(EXTRA string=óta)
szülő
commit
dfe97a375e

+ 2 - 2
static/screenAndroid/WXtrialInterface.html

@@ -474,7 +474,7 @@
                 $.toast('网络异常,请稍后重试', 'text');
               }
             } else if (res.status === 5200) {
-              if (timeInterval >= 30) {
+              if (timeInterval > 7) {
                 $.toast('网络异常,请稍后重试', 'text');
                 timerInterval = clearTimeout()
                 return
@@ -482,7 +482,7 @@
               timerInterval = setTimeout(() => {
                 connect(type);
                 timeInterval += 1;
-              }, 1000)
+              }, 3000)
             } else {
               $.toast('画面异常,请重新进入', 'text');
               setTimeout(() => {

+ 2 - 2
static/screenIos/WXtrialInterface.html

@@ -495,7 +495,7 @@
                 $.toast('网络异常,请稍后重试', 'text');
               }
             } else if (res.status === 5200) {
-              if (timeInterval >= 30) {
+              if (timeInterval > 7) {
                 $.toast('网络异常,请稍后重试', 'text');
                 timerInterval = clearTimeout()
                 return
@@ -503,7 +503,7 @@
               timerInterval = setTimeout(() => {
                 connect(type);
                 timeInterval += 1;
-              }, 1000)
+              }, 3000)
             }  else {
               $.toast('画面异常,请重新进入', 'text');
               setTimeout(() => {