scope不能为空 错误代码10010

第一种可能


重定向的地址要URLEncode处理一下 scope
=snsapi_base或scope=snsapi_userinfo


第二种可能

原因是我们是单页面应用url自带#/在微信里面认为#号后面的参数不被识别

后端开发人员把参数放到跳转 URL地址前面,正确形式是

https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx354283df6c21d57f926382d1c&response_type=code&scope=snsapi_privateinfo&agentid=90&redirect_uri=https://uat.zifkuinfows.com/jdpop/#/&state=STATE#wechat_redirect



原文地址:https://www.cnblogs.com/zhanghailing/p/12197724.html