|
|
@@ -47,14 +47,15 @@ public class OrderPayService implements OrderPayFeignService {
|
|
|
if (paymentType == null) {
|
|
|
return ResultContent.buildFail("未指定支付方式");
|
|
|
}
|
|
|
+ String serviceBeanName = paymentType.getServiceBeanName();
|
|
|
Object beanObj = null;
|
|
|
try {
|
|
|
- beanObj = applicationContext.getBean(paymentType.getServiceBeanName());
|
|
|
+ beanObj = applicationContext.getBean(serviceBeanName);
|
|
|
} catch (Exception e) {
|
|
|
log.error("createOrder", e.getMessage());
|
|
|
}
|
|
|
if (beanObj == null) {
|
|
|
- return ResultContent.buildFail("");
|
|
|
+ return ResultContent.buildFail(String.format("未找到服务:%s", serviceBeanName));
|
|
|
}
|
|
|
BasePayService basePayService = (BasePayService) beanObj;
|
|
|
return ResultContent.buildSuccess(basePayService);
|