fix: 异常加上状态码

pull/6/head
tangqian 2023-05-30 20:48:19 +08:00
parent c737582293
commit 3a9deab4a5
1 changed files with 1 additions and 2 deletions

View File

@ -43,8 +43,7 @@ public class WxPayStrategy implements IPayStrategy{
WxPayService wxPayService = wxPayOneAutoConfiguration.wxPayOneService(); WxPayService wxPayService = wxPayOneAutoConfiguration.wxPayOneService();
Assert.notNull(wxPayService, "获取微信支付配置失败!"); Assert.notNull(wxPayService, "获取微信支付配置失败!");
WxPayUnifiedOrderV3Request wxPayRequest = new WxPayUnifiedOrderV3Request(); WxPayUnifiedOrderV3Request wxPayRequest = new WxPayUnifiedOrderV3Request();
// int sum = orderDO.getPayPrice().multiply(new BigDecimal("100")).intValue(); int sum = orderDO.getPayPrice().multiply(new BigDecimal("100")).intValue();
int sum = 1;
wxPayRequest.setAmount(new WxPayUnifiedOrderV3Request.Amount().setTotal(sum)); wxPayRequest.setAmount(new WxPayUnifiedOrderV3Request.Amount().setTotal(sum));
wxPayRequest.setDescription("会员充值"); wxPayRequest.setDescription("会员充值");
wxPayRequest.setOutTradeNo(orderDO.getOrderId()); wxPayRequest.setOutTradeNo(orderDO.getOrderId());