小程序支付微信回调地址问题

1、小程序支付完成后,微信回调本地服务时,报错,信息如下:
org.eclipse.jetty.http.HttpParser : bad HTTP parsed: 400 Illegal character 0x3 for HttpChannelOverHttp

解决方案:直接ip访问时前面不要加https或http,ip访问时会默认加上http

2、另外:
使用Json返回时,如果data值没有写,默认是空字符串,不是null。controller控制层要注意判断。
eg:JsonResult.buildSuccessResult(“抱歉,没有查询到此订单”); Json.getData()为空字符串(即“”),不是null

猜你喜欢

转载自blog.csdn.net/u012096662/article/details/81481767