fix: 异常加上状态码
parent
c737582293
commit
3a9deab4a5
|
@ -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());
|
||||||
|
|
Loading…
Reference in New Issue