Browse Source

feat(云机一键修复): 添加修复中提示语

zengzhixiang 2 years ago
parent
commit
a7e3d870e2
2 changed files with 25 additions and 7 deletions
  1. 13 4
      static/screenAndroid/WXtrialInterface.html
  2. 12 3
      static/screenIos/WXtrialInterface.html

+ 13 - 4
static/screenAndroid/WXtrialInterface.html

@@ -507,7 +507,9 @@
                   quit();
                 }, 3000);
               }
-            } else if (res.status === 5200) {
+              return;
+            }
+            if (res.status === 5200) {
               if (timeInterval > 7) {
                 $.toast('网络异常,请稍后重试', 'text');
                 setTimeout(() => {
@@ -521,13 +523,20 @@
                 connect(type);
                 timeInterval += 1;
               }, 3000);
-            } else {
-              $.toast('画面异常,请重新进入', 'text');
+              return;
+            }
+            if (res.status === 5220) {
+              $.toast('云手机正在一键修复中', 'text');
               setTimeout(() => {
-                clearInterval(intervaler);
                 quit();
               }, 3000);
+              return;
             }
+            $.toast('画面异常,请重新进入', 'text');
+            setTimeout(() => {
+              clearInterval(intervaler);
+              quit();
+            }, 3000);
           },
         });
       }

+ 12 - 3
static/screenIos/WXtrialInterface.html

@@ -528,7 +528,9 @@
                   quit();
                 }, 3000);
               }
-            } else if (res.status === 5200) {
+              return;
+            }
+            if (res.status === 5200) {
               if (timeInterval > 7) {
                 $.toast('网络异常,请稍后重试', 'text');
                 timerInterval = clearTimeout();
@@ -541,12 +543,19 @@
                 connect(type);
                 timeInterval += 1;
               }, 3000);
-            } else {
-              $.toast('画面异常,请重新进入', 'text');
+              return;
+            }
+            if (res.status === 5220) {
+              $.toast('云手机正在一键修复中', 'text');
               setTimeout(() => {
                 quit();
               }, 3000);
+              return;
             }
+            $.toast('画面异常,请重新进入', 'text');
+            setTimeout(() => {
+              quit();
+            }, 3000);
           },
         });
       }