zhaoxiaoqiang
2022-08-04 a5c62b07b759d794c1b371f07ec5ce548207c846
src/utils/wechat.js
@@ -19,7 +19,7 @@
//         var url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${redirect_uri}&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect`
        
//         // 判断用户是否已经授权
//         if(window.localStorage.edu_ins_client_openId == 'undefined' || !localStorage.edu_ins_client_openId){
//         if(window.localStorage.axx_ins_client_openId == 'undefined' || !localStorage.axx_ins_client_openId){
//             window.location.href = url
//             // 在回调页面去获取到授权返回的code,并且传递给后端
//         }
@@ -33,7 +33,7 @@
            // 拼接微信授权页面链接
            var url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.appid}&redirect_uri=${this.redirect_uri}&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect`
             // 判断用户是否已经授权
            if(window.localStorage.edu_ins_client_openId == 'undefined' || !localStorage.edu_ins_client_openId){
            if(window.localStorage.axx_ins_client_openId == 'undefined' || !localStorage.axx_ins_client_openId){
                window.location.href = url
                // 在回调页面去获取到授权返回的code,并且传递给后端
            }