Browse Source

add 获取bean

GITZYY 4 months ago
parent
commit
3561234abf

+ 1 - 1
egress-gateway-service-domain/src/main/java/com/hrsk/cloud/eg/domain/api/ApiChannel.java

@@ -103,7 +103,7 @@ public class ApiChannel {
             UserBaseInfoCmd userBaseInfoCmd = JSONObject.parseObject(input.get("user").toString(), UserBaseInfoCmd.class);
             EgLoanApiConfigInfoCmd apiConfigInfoCmd = JSONObject.parseObject(input.get("api").toString(), EgLoanApiConfigInfoCmd.class);
             PlanCmd planCmd = JSONObject.parseObject(input.get("plan").toString(), PlanCmd.class);
-            LoanManagerService loanManagerService = new LoanManagerService();
+            LoanManagerService loanManagerService = DomainFactory.create(LoanManagerService.class);
             LoanDockingApi loanDockingApi = loanManagerService.apiRouter(planCmd, apiConfigInfoCmd);
             DataVo dataVo = loanDockingApi.qualityCheck(userBaseInfoCmd, planCmd, apiConfigInfoCmd, httpClientFunc, redisGetFunction, redisSetFunction);
             response.setData(dataVo);