xiebaomin 1 year ago
parent
commit
b9ed3c9265
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/resources/static/js/base.js

+ 2 - 1
src/main/resources/static/js/base.js

@@ -38,7 +38,8 @@ if(localStorage.getItem('userInfo')){
     var weChatLoginFlag = (Number(getBaseCookie("weChatAutoLogin"))===1 || Number(getBaseCookie("weChatAutoLogin"))===2);
     if(pathname.indexOf('/product/auth/') === -1 && !weChatLoginFlag ){
         var userAgent = navigator.userAgent.toLowerCase();
-        if (userAgent.match(/MicroMessenger/i) && !sessionStorage.getItem('saveParams')) {
+        const isWechatLogin = window.location.href.indexOf('isDataBase') !== -1
+        if (userAgent.match(/MicroMessenger/i) && !isWechatLogin) {
             // 微信浏览器自动授权登录
             var urlForWeChat = 'https://www.caimei365.com/we_chat/redirect_uri.html';
             $.get(coreServer+'/user/login/auth/link?mode=1&redirectUri='+urlForWeChat, function(r){