diff --git a/index.html b/index.html index c20c14c..cecadad 100644 --- a/index.html +++ b/index.html @@ -36,15 +36,15 @@ const appid = "wx718c4a40911b7837" const host = "https://huodong2.lzlj.com/iceSip/" - // if (isWeixinPlatform && !isLogin && !code) { - // let url = encodeURIComponent(host) - // if (fromid) { - // url = encodeURIComponent(host + "?fromid=" + fromid) - // } - // window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + appid + "&redirect_uri=" + url + "&response_type=code&scope=snsapi_userinfo#wechat_redirect" - // } + if (isWeixinPlatform && !isLogin && !code) { + let url = encodeURIComponent(host) + if (fromid) { + url = encodeURIComponent(host + "?fromid=" + fromid) + } + window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + appid + "&redirect_uri=" + url + "&response_type=code&scope=snsapi_userinfo#wechat_redirect" + } - -->