|
@@ -233,7 +233,8 @@ public class StudentPaymentOrderServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
sysUserCashAccountService.updateBalance(order.getUserId(), order.getActualAmount(),
|
|
|
PlatformCashAccountDetailTypeEnum.REFUNDS, memo + ",订单号:" + order.getOrderNo());
|
|
|
|
|
|
- if (order.getPaymentChannel().equals("ADAPAY")
|
|
|
+ if (StringUtils.isNotBlank(order.getPaymentChannel())
|
|
|
+ && order.getPaymentChannel().equals("ADAPAY")
|
|
|
&& !rpMap.containsKey("simulation")) {
|
|
|
confirmOrder(order);
|
|
|
}
|
|
@@ -257,7 +258,9 @@ public class StudentPaymentOrderServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
|
|
|
callOrderCallBack(order);
|
|
|
|
|
|
- if (status.equals(DealStatusEnum.SUCCESS) && order.getPaymentChannel().equals("ADAPAY")
|
|
|
+ if (status.equals(DealStatusEnum.SUCCESS)
|
|
|
+ && StringUtils.isNotBlank(order.getPaymentChannel())
|
|
|
+ && order.getPaymentChannel().equals("ADAPAY")
|
|
|
&& !rpMap.containsKey("simulation")) {
|
|
|
confirmOrder(order);
|
|
|
}
|