Bläddra i källkod

对接内容修改2期1

wangfeng 5 år sedan
förälder
incheckning
72a7b05b6f

+ 4 - 0
config-server/src/main/resources/shared/tran-service-dev.yml

@@ -118,3 +118,7 @@ nalizx:
   apiUrl: http://ssltest.ngarihealth.com/openapi-feature5/gateway
   appKey: ngari5e7dd28111dc391a
   appSecret: 11dc391a123e1002
+naligh:
+  apiUrl: http://116.62.170.131:8096/openapi-devtest/gateway
+  appKey: ngari5e34e52511dc394f
+  appSecret: 11dc394fc05518c1

+ 5 - 1
config-server/src/main/resources/shared/tran-service-local.yml

@@ -117,4 +117,8 @@ io.github.lvyahui8.spring:
 nalizx:
   apiUrl: http://ssltest.ngarihealth.com/openapi-feature5/gateway
   appKey: ngari5e7dd28111dc391a
-  appSecret: 11dc391a123e1002
+  appSecret: 11dc391a123e1002
+naligh:
+  apiUrl: http://116.62.170.131:8096/openapi-devtest/gateway
+  appKey: ngari5e34e52511dc394f
+  appSecret: 11dc394fc05518c1

+ 5 - 1
config-server/src/main/resources/shared/tran-service-pre.yml

@@ -117,4 +117,8 @@ io.github.lvyahui8.spring:
 nalizx:
   apiUrl: http://ssltest.ngarihealth.com/openapi-feature5/gateway
   appKey: ngari5e7dd28111dc391a
-  appSecret: 11dc391a123e1002
+  appSecret: 11dc391a123e1002
+naligh:
+  apiUrl: http://116.62.170.131:8096/openapi-devtest/gateway
+  appKey: ngari5e34e52511dc394f
+  appSecret: 11dc394fc05518c1

+ 5 - 1
config-server/src/main/resources/shared/tran-service-pro.yml

@@ -117,4 +117,8 @@ io.github.lvyahui8.spring:
 nalizx:
   apiUrl: http://ssltest.ngarihealth.com/openapi-feature5/gateway
   appKey: ngari5e7dd28111dc391a
-  appSecret: 11dc391a123e1002
+  appSecret: 11dc391a123e1002
+naligh:
+  apiUrl: http://116.62.170.131:8096/openapi-devtest/gateway
+  appKey: ngari5e34e52511dc394f
+  appSecret: 11dc394fc05518c1

+ 5 - 1
config-server/src/main/resources/shared/tran-service-test.yml

@@ -117,4 +117,8 @@ io.github.lvyahui8.spring:
 nalizx:
   apiUrl: http://ssltest.ngarihealth.com/openapi-feature5/gateway
   appKey: ngari5e7dd28111dc391a
-  appSecret: 11dc391a123e1002
+  appSecret: 11dc391a123e1002
+naligh:
+  apiUrl: http://116.62.170.131:8096/openapi-devtest/gateway
+  appKey: ngari5e34e52511dc394f
+  appSecret: 11dc394fc05518c1

+ 8 - 1
tran-service/src/main/java/com/diagbot/facade/InquiryTriageFacade.java

@@ -52,6 +52,13 @@ public class InquiryTriageFacade extends InquiryTriageServiceImpl {
     @Value("${nalizx.appSecret}")
     private String appSecret;
 
+    @Value("${naligh.apiUrl}")
+    private String apiUrlg;
+    @Value("${naligh.appKey}")
+    private String appKeyg;
+    @Value("${naligh.appSecret}")
+    private String appSecretg;
+
     /**
      * @param saveInquiryVO
      * @return
@@ -157,7 +164,7 @@ public class InquiryTriageFacade extends InquiryTriageServiceImpl {
         Response response = null;
         try {
             String encodingAesKey = "";
-            Client client = new Client(apiUrl, appKey, appSecret, encodingAesKey);
+            Client client = new Client(apiUrlg, appKeyg, appSecretg, encodingAesKey);
             request = getltcsGh(saveInquiryVO, id);
             response = client.execute(request);
             log.info("request:" + FastJsonUtils.getBeanToJson(request));