Commit e4378e56280b36fb093449ea37b083f0354cb615
1 parent
b5803560
修复 WxPayOrderNotifyV3Result 的重命名
Showing
1 changed file
with
3 additions
and
3 deletions
yudao-framework/yudao-spring-boot-starter-biz-pay/src/main/java/cn/iocoder/yudao/framework/pay/core/client/impl/weixin/AbstractWxPayClient.java
| @@ -17,8 +17,8 @@ import cn.iocoder.yudao.framework.pay.core.client.dto.transfer.PayTransferUnifie | @@ -17,8 +17,8 @@ import cn.iocoder.yudao.framework.pay.core.client.dto.transfer.PayTransferUnifie | ||
| 17 | import cn.iocoder.yudao.framework.pay.core.client.impl.AbstractPayClient; | 17 | import cn.iocoder.yudao.framework.pay.core.client.impl.AbstractPayClient; |
| 18 | import cn.iocoder.yudao.framework.pay.core.enums.order.PayOrderStatusRespEnum; | 18 | import cn.iocoder.yudao.framework.pay.core.enums.order.PayOrderStatusRespEnum; |
| 19 | import cn.iocoder.yudao.framework.pay.core.enums.transfer.PayTransferTypeEnum; | 19 | import cn.iocoder.yudao.framework.pay.core.enums.transfer.PayTransferTypeEnum; |
| 20 | +import com.github.binarywang.wxpay.bean.notify.WxPayNotifyV3Result; | ||
| 20 | import com.github.binarywang.wxpay.bean.notify.WxPayOrderNotifyResult; | 21 | import com.github.binarywang.wxpay.bean.notify.WxPayOrderNotifyResult; |
| 21 | -import com.github.binarywang.wxpay.bean.notify.WxPayOrderNotifyV3Result; | ||
| 22 | import com.github.binarywang.wxpay.bean.notify.WxPayRefundNotifyResult; | 22 | import com.github.binarywang.wxpay.bean.notify.WxPayRefundNotifyResult; |
| 23 | import com.github.binarywang.wxpay.bean.notify.WxPayRefundNotifyV3Result; | 23 | import com.github.binarywang.wxpay.bean.notify.WxPayRefundNotifyV3Result; |
| 24 | import com.github.binarywang.wxpay.bean.request.*; | 24 | import com.github.binarywang.wxpay.bean.request.*; |
| @@ -176,8 +176,8 @@ public abstract class AbstractWxPayClient extends AbstractPayClient<WxPayClientC | @@ -176,8 +176,8 @@ public abstract class AbstractWxPayClient extends AbstractPayClient<WxPayClientC | ||
| 176 | 176 | ||
| 177 | private PayOrderRespDTO doParseOrderNotifyV3(String body) throws WxPayException { | 177 | private PayOrderRespDTO doParseOrderNotifyV3(String body) throws WxPayException { |
| 178 | // 1. 解析回调 | 178 | // 1. 解析回调 |
| 179 | - WxPayOrderNotifyV3Result response = client.parseOrderNotifyV3Result(body, null); | ||
| 180 | - WxPayOrderNotifyV3Result.DecryptNotifyResult result = response.getResult(); | 179 | + WxPayNotifyV3Result response = client.parseOrderNotifyV3Result(body, null); |
| 180 | + WxPayNotifyV3Result.DecryptNotifyResult result = response.getResult(); | ||
| 181 | // 2. 构建结果 | 181 | // 2. 构建结果 |
| 182 | Integer status = parseStatus(result.getTradeState()); | 182 | Integer status = parseStatus(result.getTradeState()); |
| 183 | String openid = result.getPayer() != null ? result.getPayer().getOpenid() : null; | 183 | String openid = result.getPayer() != null ? result.getPayer().getOpenid() : null; |