700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > 40163 php 微信支付授权获取 openId {quot;errcodequot;:40163 quot;errmsgquot;:quot;code been used hints:...

40163 php 微信支付授权获取 openId {quot;errcodequot;:40163 quot;errmsgquot;:quot;code been used hints:...

时间:2023-12-29 20:12:46

相关推荐

40163 php 微信支付授权获取 openId {quot;errcodequot;:40163 quot;errmsgquot;:quot;code been used  hints:...

微信支付授权获取用户openId时候,返回40163,原因:

微信支付获取用户openid时,报出错误。原因是同时配置了http和https,微信网页oauth认证通知了两次

删除apache配置文件中http保留https,原因嘛就是微信通知-12-31日前微信开发必须使用https。

bug是在配置https以后出现的,这个提示让我最终找到了原因。

解决方法:

时都会重定向链接redirect_uri都会自动请求两次,由于并发导致了一些问题,

那么,为什么会请求两次呢?,调试时发现会访问两次,一次是301,页面重定向了,第二次跟第一次就差这个参数。加上后,不再报错。code 可以了。

https://open./connect/oauth2/authorize?appid=xxx&redirect_uri=xxx&response_type=code&scope=snsapi_userinfo&state=STATE&connect_redirect=1#wechat_redirect

&connect_redirect=1 这个参数

希望与广大网友互动??

点此进行留言吧!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。