Pārlūkot izejas kodu

[POS][提示]:卡支付ID出错

release_toaliyun_real
Stormeye Wu pirms 6 gadiem
vecāks
revīzija
e60b87c6df
1 mainītis faili ar 7 papildinājumiem un 2 dzēšanām
  1. +7
    -2
      mallinkPosApi/src/main/java/com/iformall/service/impl/PosServiceImpl.java

+ 7
- 2
mallinkPosApi/src/main/java/com/iformall/service/impl/PosServiceImpl.java Parādīt failu

@@ -2191,8 +2191,13 @@ public class PosServiceImpl implements PosService {
throw new MallinkException(ErrorCode.SYS_PARAMETER_CAST_ERROR);
}
WxCardSpend cardSpend = cardSpendService.getById(cardSpendId);
cardSpend.setOrderId(order.getId());
cardSpendService.cardSpendForPosPay(scoreCreditCalc, cardSpend, merchant, buUser);
if (cardSpend != null) {
cardSpend.setOrderId(order.getId());
cardSpendService.cardSpendForPosPay(scoreCreditCalc, cardSpend, merchant, buUser);
} else {
logger.error("卡支付ID未发现: " + cardSpendId);
throw new MallinkException(ErrorCode.SYS_PARAMETER_CAST_ERROR);
}
return payOrder;
}



Notiek ielāde…
Atcelt
Saglabāt