微信公衆號開發 ,redirect_uri域名仍是與後臺配置不一致

測試帳號地址:api

https://mp.weixin.qq.com/debug/cgi-bin/sandboxinfo?action=showinfo&t=sandbox/index安全

https://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/loginapp

 

登陸後進行設置:測試

 

測試帳號信息:

 

 接口配置信息

 

 

 JS接口安全域名

 

 

網頁賬號 網頁受權獲取用戶基本信息

 

 

 

 注意:

  • 上面幾項url和域名必定要相同,好比都是cs.xx.com
  • url必定要帶http,好比http://cs.xx.com
  • 域名不能帶http,好比cs.xx.com

 

後臺系統的請求日誌(加粗爲重點,必須和公衆號設置的參數一致):url

appid:測試帳號的appidspa

redirect_uri:是否爲設置的url(http://www.xxx.com)debug

https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx69fxxxxxxxxed8&redirect_uri=http%3a%2f%2fwww.xxx.com%2fvShop%2fdefault&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect 日誌

相關文章
相關標籤/搜索