退款接口实现
This commit is contained in:
@@ -99,12 +99,12 @@ public class PayServiceImpl implements PayService {
|
||||
returnOrderInfo.getRefundAmount().setScale(2, RoundingMode.DOWN).multiply(new BigDecimal(100)).longValue(), callBack, null, thirdApply.getAppToken());
|
||||
log.info("福商通退款响应报文: {}", publicResp);
|
||||
if (ObjectUtil.isNotNull(publicResp) && ObjectUtil.isNotEmpty(publicResp)) {
|
||||
if (!"000000".equals(publicResp.getCode())) {
|
||||
if ("000000".equals(publicResp.getCode())) {
|
||||
if (!"SUCCESS".equals(publicResp.getObjData().getState()) && !publicResp.getObjData().getState().equals("ING")) {
|
||||
throw new BadRequestException("退款渠道调用失败");
|
||||
throw new BadRequestException("退款渠道调用失败: " + publicResp.getMsg());
|
||||
}
|
||||
} else {
|
||||
throw new BadRequestException("退款渠道调用失败");
|
||||
throw new BadRequestException("退款渠道调用失败: " + publicResp.getMsg());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user