fix: 异常加上状态码

pull/6/head
tangqian 2023-05-30 20:21:55 +08:00
parent 36956f30b8
commit c737582293
1 changed files with 2 additions and 1 deletions

View File

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