瀏覽代碼

Merge branch 'master' of http://gogs.ywtinfo.com/ywt_rebuild_group/ywt-platform-outpatient-parent

Walker 1 年之前
父節點
當前提交
4373e94ca6

+ 1 - 7
ywt-platform-outpatient-taihe-rpc/src/main/java/com/ywt/outpatient/taihe/rpc/handler/RestTemplateHandler.java

@@ -46,13 +46,7 @@ public class RestTemplateHandler {
             }
 
             httpHeaders.set("R-Service-Name", serviceName);
-
-            MultiValueMap<String, Object> paramMap = new LinkedMultiValueMap<>();
-            if (!params.isEmpty()){
-                params.forEach(paramMap::add);
-            }
-
-            HttpEntity<MultiValueMap<String, Object>> httpEntity = new HttpEntity<>(paramMap, httpHeaders);
+            HttpEntity<Map<String, Object>> httpEntity = new HttpEntity<>(params, httpHeaders);
             ResponseEntity<String> result = restTemplate.postForEntity(url,httpEntity,String.class);
             return new Resp(HttpStatus.SC_OK,result.getBody());
         }catch (Exception e){

+ 9 - 0
ywt-platform-outpatient-web/src/main/resources/application.yml

@@ -71,3 +71,12 @@ biz-param:
 com:
   ywt:
     restServiceMap: '[{"restName":"com.ywt.AlipayMpRestService","restIpPort":"120.77.174.122:8097"}]'
+
+#自定义参数
+buz-param:
+  web:
+    ywtCovid19ListCount: 100
+    nearByDistance: 1000
+    byFtpAppid: ywt_auto_test
+    byFtpAppsecret: ywt1234567890
+    byFtpUrl: https://nfbyphy-qa.ywtinfo.com/front-end-ftp-download/fptToHttpPath