|
|
@@ -12,6 +12,7 @@ import com.zhongshu.payment.client.payModel.commn.CreateOrderParam;
|
|
|
import com.zhongshu.payment.client.pay.service.OrderPayFeignService;
|
|
|
import com.zhongshu.payment.server.core.dao.ExecuteMethodInfoDao;
|
|
|
import com.zhongshu.payment.server.core.domain.pay.unionFrictionlessPay.ExecuteMethodInfo;
|
|
|
+import com.zhongshu.payment.server.core.utils.CommonUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.ObjectUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@@ -59,9 +60,10 @@ public class OrderPayService implements OrderPayFeignService {
|
|
|
String serviceBeanName = paymentType.getServiceBeanName();
|
|
|
Object beanObj = null;
|
|
|
try {
|
|
|
- beanObj = applicationContext.getBean(serviceBeanName);
|
|
|
+ // 得到bean 首字母小写
|
|
|
+ beanObj = applicationContext.getBean(CommonUtil.getCollectionName(serviceBeanName));
|
|
|
} catch (Exception e) {
|
|
|
- log.error("createOrder", e.getMessage());
|
|
|
+ log.error("getServiceBean: {}", e.getMessage());
|
|
|
}
|
|
|
if (beanObj == null) {
|
|
|
return ResultContent.buildFail(String.format("未找到服务:%s", serviceBeanName));
|