Explorar o código

bugfix:处理退出下机重复刷新问题

leo hai 1 ano
pai
achega
c19c45353a
Modificáronse 2 ficheiros con 12 adicións e 0 borrados
  1. 1 0
      static/webRtcYJ/WXdraw.js
  2. 11 0
      static/webRtcYJ/timer.js

+ 1 - 0
static/webRtcYJ/WXdraw.js

@@ -90,6 +90,7 @@ function doConnectDirectives() {
       url: baseUrl + '/api/public/v5/pushflow/popup',
       headers: {
         Authorization: token,
+        versionName: '5.8.0'
       },
       type: 'get',
       dataType: 'json',

+ 11 - 0
static/webRtcYJ/timer.js

@@ -67,6 +67,17 @@ function downline() {
         decodeWoker.postMessage('close');
         decodeWoker.terminate();
         deleteDB(db, storeName, userCardId)
+        parent.postMessage(
+          {
+            type: 'exit',
+          },
+          '*',
+        );
+        uni.postMessage({
+          data: {
+              type: 'exit'
+          }
+      });
         quit();
       } else {
         $.toast(res.msg, 'text');