From 5f580ad59288dd50f41b59d8411b5ab656d7084e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=92=E6=9C=A8?= <31089228+StringKe@users.noreply.github.com> Date: Tue, 16 Nov 2021 16:27:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E5=9B=9E=E8=B0=83=20flag=20=E5=8F=82=E6=95=B0=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 具体回调实现的参数解析逻辑无法区分是同步还是异步。 具体表现为假设同步回调携带订单ID,异步携带,如果在 `parseParams` 的实现中判断就会出现问题。 --- .../jeepay/pay/ctrl/payorder/ChannelNoticeController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/ctrl/payorder/ChannelNoticeController.java b/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/ctrl/payorder/ChannelNoticeController.java index ce0c73b6..d93621bb 100644 --- a/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/ctrl/payorder/ChannelNoticeController.java +++ b/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/ctrl/payorder/ChannelNoticeController.java @@ -80,7 +80,7 @@ public String doReturn(HttpServletRequest request, @PathVariable("ifCode") Strin } // 解析订单号 和 请求参数 - MutablePair mutablePair = payNotifyService.parseParams(request, urlOrderId, IChannelNoticeService.NoticeTypeEnum.DO_NOTIFY); + MutablePair mutablePair = payNotifyService.parseParams(request, urlOrderId, IChannelNoticeService.NoticeTypeEnum.DO_RETURN); if(mutablePair == null){ // 解析数据失败, 响应已处理 log.error("{}, mutablePair is null ", logPrefix); throw new BizException("解析数据异常!"); //需要实现类自行抛出ResponseException, 不应该在这抛此异常。