|
@@ -676,7 +676,9 @@ function handleComplete(evt, comp) {
|
|
|
|
|
|
function getInfo() {
|
|
|
var ua = navigator.userAgent.toLowerCase();
|
|
|
+ var isMobile = false;
|
|
|
if (!!navigator.userAgent.match(/AppleWebKit.*Mobile.*/)) {
|
|
|
+ isMobile = true;
|
|
|
if (ua.match(/MicroMessenger/i) == "micromessenger") {
|
|
|
type = 0;
|
|
|
url = "https://open.weixin.qq.com/connect/oauth2/authorize?"
|
|
@@ -705,6 +707,7 @@ function getInfo() {
|
|
|
+"scope=snsapi_userinfo&"//snsapi_userinfo
|
|
|
+"state=1#wechat_redirect";
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
if(URLParams['uid']) {
|
|
@@ -740,7 +743,10 @@ function getInfo() {
|
|
|
$('.secret-btn').show();
|
|
|
|
|
|
init();
|
|
|
- getMsg();
|
|
|
+ if (isMobile) {
|
|
|
+ getMsg();
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|