diff --git a/js/dynCodePay.js b/js/dynCodePay.js index 9d29b03..1c44d92 100644 --- a/js/dynCodePay.js +++ b/js/dynCodePay.js @@ -88,7 +88,7 @@ var webAppClass = { //alert("local:" + local); if (code == null || code === '') { //alert(code); - window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + appID + '&redirect_uri=' + encodeURIComponent(local) + '&response_type=code&scope=snsapi_base&state=1#wechat_redirect' + window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' + appID + '&redirect_uri=' + encodeURIComponent(local) + '&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect' } else { return code; }