fix: 异常加上状态码

pull/6/head
tangqian 2023-05-30 20:51:02 +08:00
parent 3a9deab4a5
commit 7bfe815a90
1 changed files with 1 additions and 2 deletions

View File

@ -1393,8 +1393,7 @@ public class StoreOrderServiceImpl extends ServiceImpl<StoreOrderMapper, StoreOr
if (StringUtils.equals("SUCCESS", result.getTradeState())) { if (StringUtils.equals("SUCCESS", result.getTradeState())) {
String outTradeNo = result.getOutTradeNo(); String outTradeNo = result.getOutTradeNo();
// 用户支付金额 // 用户支付金额
Integer payerTotal1 = result.getAmount().getPayerTotal(); BigDecimal payerTotal = NumberUtil.div(result.getAmount().getPayerTotal() + "", "100", 2);
BigDecimal payerTotal = new BigDecimal(result.getAmount().getPayerTotal()).multiply(new BigDecimal("100"));
// 处理相关逻辑 // 处理相关逻辑
if (outTradeNo.contains("MEMBER_")) { if (outTradeNo.contains("MEMBER_")) {
log.info("WXPAY====会员===>"); log.info("WXPAY====会员===>");