浏览代码

云机挂载时轮询接口

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