微信公众号授权获取code带多个参数 丢失参数
https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_re
比如上面的redirect_uri 带多个参数
错误的:http://gzhtest.lipinedu.cn/index/user/login.html?redirectUrl=http://gzhtest.lipinedu.cn/transit/jump.html?uid=98&qr=1&platform=1
redirect_uri=http%3A%2F%2Fgzhtest.lipinedu.cn%2Findex%2Fuser%2Flogin.html%3FredirectUrl%3Dhttp%3A%2F%2Fgzhtest.lipinedu.cn%2Ftransit%2Fjump.html%3Fuid%3D98%26qr%3D1%26platform%3D1
这样请求后会丢失参数qr和platform, 只剩下参数uid
正确的:http://gzhtest.lipinedu.cn/index/user/login.html?redirectUrl=http%3A%2F%2Fgzhtest.lipinedu.cn%2Ftransit%2Fjump.html%3Fuid%3D98%26qr%3D1%26platform%3D1
http%3A%2F%2Fgzhtest.lipinedu.cn%2Findex%2Fuser%2Flogin.html%3FredirectUrl%3Dhttp%253A%252F%252Fgzhtest.lipinedu.cn%252Ftransit%252Fjump.html%253Fuid%253D98%2526qr%253D1%2526platform%253D1
需要对里面的参数 redirectUrl进行第二次urlencode编码