https://open.weixin.qq.com/connect/oauth2/authorize 这个是公众平台的接口,获取用户支付授权码code时,redirect_uri内的参数偶尔丢失,完整的请求链接:https://open.weixin.qq.com/connect/oauth2/authorize?appid=xxx&redirect_uri=域名?参数1=xxx&参数2=xxx&response_type=code&scope=snsapi_base&state=123&connect_redirect=1#wechat_redirect。
请问这种问题怎么解决?
在第三方开放平台,公众号都已经授权成功了。业务授权登录还是redirect_uri 参数错误
https://open.weixin.qq.com/connect/oauth2/authorize?appid=xxxx&redirect_uri=http%3A%2F%2Fred.oauth.chengziyi002.cn%2Fauthorized%2Foauth-callback%3Fbusiness_id%3D2%26callback%3D%252Fvoice%252Findex%253Fid%253D2%2526sign%253Dea64729749f80225fdd77f06b731c5a2919c7072&response_type=code&scope=snsapi_userinfo&state=597114beda81e30a821e416c6e4f5bac&component_appid=xxxxx&uin=MjU5ODg3NTU2MA%3D%3D&key=3365da67891026f20d4822021ceb64515d4f45464bfbfba9ba9ce0b72599b739e7a6bcc1e62a4b273f8cd2b88532a922&pass_ticket=E/5jguN9MnFN3LGByj50TgL3ESceHnonEQEeKw7lhJcoHVYlzPGr13qUBm+UB13thy41vmEwbUysZjZWpXu6ww==
redirect_uri要urlencode