scope爲snsapi_userinfo 未關注者點擊受權提示 scope參數錯誤或沒有scope權限 php
解決方法 web
出現這種錯誤網上查出現有的緣由是:
api
訂閱號沒有相關的權限app
帳號沒有認證,沒有相關的權限spa
那麼這裏遇到問題兩種都不是。開發帳號是 服務號,並且也是認證號。code
解決方法:開發
錯誤配置:
oauth
https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxf0e81c3bee622d60&redirect_uri=http%3A%2F%2Fnba.bluewebgame.com%2Foauth_response.php&scope=snsapi_userinfo&response_type=code&state=STATE#wechat_redirect
正確的配置:配置
https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxf0e81c3bee622d60&redirect_uri=http%3A%2F%2Fnba.bluewebgame.com%2Foauth_response.php&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect
緣由就是scope的位置不同!!! 權限
當 scope 爲 snsapi_base的時候沒有影響。可是scope爲snsapi_userinfo 就會提示 scope參數錯誤或沒有scope權限 。