直接打印入参,日志如下:
微信回调成功:WxPayCallBackResourceDTO(appid=null, mchid=null, out_trade_no=null, transaction_id=null, trade_type=null, attach=null, trade_state=null, trade_state_desc=null, bank_type=null, success_time=null, payer=null, amount=null, out_refund_no=null, refund_status=null)
偶尔获取不到,还是一直获取不到,看看你contorller咋写的
@RequestMapping(value = "wxPayCallBack",method = RequestMethod.POST)
@ApiOperation(value = "微信支付回调接口", notes = "微信支付回调接口")
public Map<String, String> wehCatPayCallback(@Validated @RequestBody WxPayCallBackResourceDTO req, HttpServletResponse response) {
return wxPayService.wehcatPayCallback(req,response);
}