问题描述:
https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxd945b5808d7795ab&redirect_uri=http://m.biger.com/index.php/pay/wxpay_web_url/?money=1&out_trade_no=C14519121826271852&response_type=code&scope=snsapi_base&state=STATE&connect_redirect=1#wechat_redirect
请求以上链接会微信端会返回404,奇怪,以前也不会这样,参数错了?
我观察了下好像多了个 connect_redirect.
redirect_uri里面的URL需要做URL encoding,把&转换为%26,否则微信会误认为那些参数是它的参数,从而出错。