Yansen 2 yıl önce
ebeveyn
işleme
91b2ca4ce9
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2
    1
      src/utils/wx.js

+ 2
- 1
src/utils/wx.js Dosyayı Görüntüle

@@ -90,7 +90,8 @@ function wxsdk() {
90 90
 
91 91
     const appid = APPID || 'wx5d0c5a7f210d872f';
92 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 95
     window.location.href = url;
95 96
   }
96 97