| | |
| | | consumeDTO.setAmount(consumeAmount); |
| | | R<ExchangeCodeConsumeResultVO> result = otherClient.consumeExchangeCodeBalance(consumeDTO); |
| | | if (result == null || result.getCode() != 200) { |
| | | throw new RuntimeException("??????????"); |
| | | throw new RuntimeException("扣减兑换码余额失败"); |
| | | } |
| | | } |
| | | |
| | |
| | | refundDTO.setRefundNo(refundNo); |
| | | R<ExchangeCodeConsumeResultVO> result = otherClient.refundExchangeCodeBalance(refundDTO); |
| | | if (result == null || result.getCode() != 200) { |
| | | throw new RuntimeException("??????????"); |
| | | throw new RuntimeException("退还兑换码余额失败"); |
| | | } |
| | | } |
| | | |