fix: 异常加上状态码
parent
c737582293
commit
3a9deab4a5
|
@ -43,8 +43,7 @@ public class WxPayStrategy implements IPayStrategy{
|
|||
WxPayService wxPayService = wxPayOneAutoConfiguration.wxPayOneService();
|
||||
Assert.notNull(wxPayService, "获取微信支付配置失败!");
|
||||
WxPayUnifiedOrderV3Request wxPayRequest = new WxPayUnifiedOrderV3Request();
|
||||
// int sum = orderDO.getPayPrice().multiply(new BigDecimal("100")).intValue();
|
||||
int sum = 1;
|
||||
int sum = orderDO.getPayPrice().multiply(new BigDecimal("100")).intValue();
|
||||
wxPayRequest.setAmount(new WxPayUnifiedOrderV3Request.Amount().setTotal(sum));
|
||||
wxPayRequest.setDescription("会员充值");
|
||||
wxPayRequest.setOutTradeNo(orderDO.getOrderId());
|
||||
|
|
Loading…
Reference in New Issue