Commit 918723193054cb0379d29af01b482eb6e78b4b65

Authored by litao
1 parent 00ab97f091

bug修复

Showing 2 changed files with 3 additions and 20 deletions

platform-biz-patient-service/src/main/java/com/lyms/platform/biz/RemoteService.java View file @ 9187231
1 1 package com.lyms.platform.biz;
2 2  
3 3 import com.lyms.platform.common.utils.HttpClientUtil;
4   -import com.lyms.platform.common.utils.PropertiesUtil;
5   -import org.apache.commons.lang3.StringUtils;
  4 +import com.lyms.platform.common.utils.PropertiesUtils;
6 5 import org.springframework.stereotype.Service;
7 6  
8   -import javax.annotation.PostConstruct;
9   -import java.text.MessageFormat;
10 7 import java.util.HashMap;
11 8 import java.util.Map;
12 9  
... ... @@ -18,17 +15,7 @@
18 15 @Service
19 16 public class RemoteService {
20 17  
21   - private String BASE_URL;
22   -
23   - public static final String INVALID_COUPON_URL = "coupon/invalid";
24   -
25   - @PostConstruct
26   - public void init() {
27   - String type = PropertiesUtil.getInstance().get("config","remote.url.type");
28   - if(StringUtils.isNotBlank(type)) {
29   - this.BASE_URL = PropertiesUtil.getInstance().get("config", MessageFormat.format("platform.operate.api.{0}.url", type));
30   - }
31   - }
  18 + private String BASE_URL = PropertiesUtils.getPropertyValue("platform.operate.api.validate.url");
32 19  
33 20 /**
34 21 * 作废优惠券相关
platform-operate-api/src/main/resources/config.properties View file @ 9187231
... ... @@ -78,9 +78,5 @@
78 78 jdbc.7.username=LYMS_ODS
79 79 jdbc.7.password=Welcome1
80 80  
81   -# 远程调用类型 1=本地 2=测试环境 3=线上环境
82   -remote.url.type=2
83   -platform.operate.api.1.url=http://localhost:9091/
84   -platform.operate.api.2.url=http://localhost:8080/
85   -platform.operate.api.3.url=https://dev-rp.healthbaby.com.cn/
  81 +platform.operate.api.validate.url=http://localhost:8080/