Yansen пре 2 година
родитељ
комит
91b2ca4ce9
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2
    1
      src/utils/wx.js

+ 2
- 1
src/utils/wx.js Прегледај датотеку

90
 
90
 
91
     const appid = APPID || 'wx5d0c5a7f210d872f';
91
     const appid = APPID || 'wx5d0c5a7f210d872f';
92
     const local = encodeURIComponent(location.origin + location.pathname)
92
     const local = encodeURIComponent(location.origin + location.pathname)
93
-    const url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${local}&response_type=code&scope=snsapi_base&state=123#wechat_redirect`
93
+    const scope = 'snsapi_userinfo'; // snsapi_base
94
+    const url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appid}&redirect_uri=${local}&response_type=code&scope=${scope}&state=123#wechat_redirect`
94
     window.location.href = url;
95
     window.location.href = url;
95
   }
96
   }
96
 
97