退款 返回

This commit is contained in:
wangw 2025-04-18 13:35:50 +08:00
parent b59f8cd667
commit e60c18a085
1 changed files with 3 additions and 0 deletions

View File

@ -690,6 +690,9 @@ public class PayServiceImpl implements PayService {
CzgResult<CzgRefundResp> refund = refund(shopId, new CzgRefundReq(refPayOrderNo, refundReason, refundAmount.multiply(MONEY_RATE).longValue(),
payment.getOrderNo(), ""));
if (refund.getCode() != 200 || refund.getData() == null || !"SUCCESS".equals(refund.getData().getState())) {
if (refund.getData() != null && refund.getData().getNote() != null) {
throw new CzgException(refund.getData().getNote());
}
throw new CzgException(refund.getMsg());
} else {
paymentService.updateChain()