|
@@ -702,7 +702,7 @@ public class UserPaymentCoreServiceImpl implements UserPaymentCoreService {
|
|
|
if (EPaymentStatus.WAIT_PAY == userPaymentOrder.getStatus() || EPaymentStatus.PAYING == userPaymentOrder.getStatus()) {
|
|
|
|
|
|
// 订单完成后续流程
|
|
|
- SpringContextHolder.getBean(UserPaymentCoreService.class)
|
|
|
+ applicationContext.getBean(UserPaymentCoreService.class)
|
|
|
.executePaymentSuccess(UserPaymentOrderWrapper.UserPaymentOrder.from(JSON.toJSONString(userPaymentOrder)), paymentResp);
|
|
|
}
|
|
|
|
|
@@ -725,7 +725,7 @@ public class UserPaymentCoreServiceImpl implements UserPaymentCoreService {
|
|
|
userPaymentOrderService.updateById(update);
|
|
|
|
|
|
// 订单关闭流程
|
|
|
- SpringContextHolder.getBean(UserPaymentCoreService.class)
|
|
|
+ applicationContext.getBean(UserPaymentCoreService.class)
|
|
|
.cancelPayment(UserPaymentOrderWrapper.UserPaymentOrder.from(JSON.toJSONString(userPaymentOrder)), paymentResp);
|
|
|
|
|
|
// 删除本地缓存
|
|
@@ -736,7 +736,7 @@ public class UserPaymentCoreServiceImpl implements UserPaymentCoreService {
|
|
|
if (PaymentStatus.CLOSED == paymentResp.getPaymentStatus() && EPaymentStatus.CLOSED != userPaymentOrder.getStatus()) {
|
|
|
|
|
|
// 订单关闭流程
|
|
|
- SpringContextHolder.getBean(UserPaymentCoreService.class)
|
|
|
+ applicationContext.getBean(UserPaymentCoreService.class)
|
|
|
.cancelPayment(UserPaymentOrderWrapper.UserPaymentOrder.from(JSON.toJSONString(userPaymentOrder)), paymentResp);
|
|
|
|
|
|
// 删除本地缓存
|
|
@@ -1232,7 +1232,7 @@ public class UserPaymentCoreServiceImpl implements UserPaymentCoreService {
|
|
|
// 支付成功
|
|
|
if (PaymentStatus.SUCCESSED == paymentResp.getPaymentStatus()) {
|
|
|
// 根据支付回调消息,更新订单状态
|
|
|
- SpringContextHolder.getBean(UserPaymentCoreService.class)
|
|
|
+ applicationContext.getBean(UserPaymentCoreService.class)
|
|
|
.executePaymentSuccess(UserPaymentOrderWrapper.UserPaymentOrder.from(JSON.toJSONString(item)), paymentResp);
|
|
|
}
|
|
|
|