diff --git a/epmet-auth/pom.xml b/epmet-auth/pom.xml
index 74e4e92ab9..eaa22e7557 100644
--- a/epmet-auth/pom.xml
+++ b/epmet-auth/pom.xml
@@ -207,6 +207,8 @@
http://101.206.141.219:21006
xSMONWwP
UUCnxLyXiB4eBF4p
+
+ https://epmet-cloud.elinkservice.cn
@@ -260,6 +262,8 @@
http://101.206.141.219:21006
xSMONWwP
UUCnxLyXiB4eBF4p
+
+ https://epmet-cloud.elinkservice.cn
@@ -308,6 +312,8 @@
http://101.206.141.219:21006
xSMONWwP
UUCnxLyXiB4eBF4p
+
+ https://epmet-cloud.elinkservice.cn
@@ -356,6 +362,8 @@
https://jcytc.lzjczl.com:21009
2cy0a9lA
6hU3PQgxLcXr27SE
+
+ https://epmet-cloud.elinkservice.cn
diff --git a/epmet-auth/src/main/java/com/epmet/service/impl/SsoServiceImpl.java b/epmet-auth/src/main/java/com/epmet/service/impl/SsoServiceImpl.java
index bfee9177ba..fa58ce86fa 100644
--- a/epmet-auth/src/main/java/com/epmet/service/impl/SsoServiceImpl.java
+++ b/epmet-auth/src/main/java/com/epmet/service/impl/SsoServiceImpl.java
@@ -26,6 +26,7 @@ import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;
@@ -66,6 +67,9 @@ public class SsoServiceImpl implements SsoService {
@Autowired
private CpUserDetailRedis cpUserDetailRedis;
+ @Value("${epmet.third.urlPrefix}")
+ private String epmetThirdUrlPrefix;
+
/**
* @Description 0、入口:得到token
* @Param formDTO
@@ -174,7 +178,7 @@ public class SsoServiceImpl implements SsoService {
*/
public String getCustomerId(String appId){
JSONObject jsonObject = new JSONObject();
- String customerMsgUrl = "https://epmet-cloud.elinkservice.cn/api/third/customermp/getcustomermsg/";
+ String customerMsgUrl = epmetThirdUrlPrefix + "/api/third/customermp/getcustomermsg/";
String data = HttpClientManager.getInstance().sendPostByJSON(customerMsgUrl + appId, JSON.toJSONString(jsonObject)).getData();
log.info("调用third服务,根据appId查询客户信息:httpclient->url:" + customerMsgUrl + ",结果->" + data);
JSONObject toResult = JSON.parseObject(data);
diff --git a/epmet-auth/src/main/resources/bootstrap.yml b/epmet-auth/src/main/resources/bootstrap.yml
index 35d3f0e1f7..02f3a33105 100644
--- a/epmet-auth/src/main/resources/bootstrap.yml
+++ b/epmet-auth/src/main/resources/bootstrap.yml
@@ -142,4 +142,9 @@ thirdplat:
jcetGend:
domain: @thirdplat.jcet.g.domain@
appkey: @thirdplat.jcet.g.appkey@
- appsecret: @thirdplat.jcet.g.appsecret@
\ No newline at end of file
+ appsecret: @thirdplat.jcet.g.appsecret@
+
+epmet:
+# third服务的相关配置
+ third:
+ urlPrefix: @epmet.third.urlprefix@
\ No newline at end of file