用Apifox测试是通的, 说明回调地址是可访问的。 但支付成功后, 接收不到回调通知的结果参数,报空指针错误,如何处理?以下是代码
@RestController
@RequestMapping("/web/notify")
public class PayNotifyController {
@RequestMapping(path = "/payAccept", method = RequestMethod.POST)
@ResponseBody
public void payAccept(@RequestBody String inXMl,HttpServletResponse response) throws IOException {
log.info("回调inXml1111111111:"+inXMl);
response.getWriter().write(WeixinUtil.SUCCESS);;
}
}
V2还是V3?你是根本没接收到还是没解析出来?