开发h5的微信支付,获取code时,没有返回code和state,也没有错误提示,是为什么?
发布于 7 年前 作者 wjia 14686 次浏览 来自 问答

开发h5的微信支付,首先获取code,url为: https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx34dd6e45b35ed5b6&redirect_uri=https%3A%2F%2Ftest.openwhy.cn%2Fwx-pay%2Fpay&response_type=code&scope=snsapi_base&state=eyJmZWVUeXBlIjoiYWN0aXZpdHlfZW50cnkiLCJhY3RpRW50cnlMb2dJZCI6IjEyMTQxNDg2NDY2MzcwOTY5NjAifQ#wechat_redirect

请求该地址后,回调我的地址为:https://test.openwhy.cn/wx-pay/pay 没有把code和state两个参数拼到地址后面,redirect_url和state都为url.encoder处理过了,请帮忙看看是怎么回事

1 回复
回到顶部