소스 검색

云机挂载时轮询接口

huangxiaojing 2 년 전
부모
커밋
dfe97a375e
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      static/screenAndroid/WXtrialInterface.html
  2. 2 2
      static/screenIos/WXtrialInterface.html

+ 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(() => {