From 2c3c1ab217e8228f8734af735ba2074a29299836 Mon Sep 17 00:00:00 2001 From: jianjun Date: Tue, 25 Oct 2022 08:35:26 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E7=BB=87=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epmet/commons/tools/utils/api/yt/YantaiApi.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/utils/api/yt/YantaiApi.java b/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/utils/api/yt/YantaiApi.java index e5c885f4a2..95a54779b0 100644 --- a/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/utils/api/yt/YantaiApi.java +++ b/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/utils/api/yt/YantaiApi.java @@ -41,7 +41,13 @@ public class YantaiApi { * 调用sso后台api接口的 秘钥 */ private static final String SSO_API_TOKEN = "iJCDUgCBV/Zk5FkkaxLypA=="; + /** + * 政务网地址 + */ private static final String SSO_BACKGROUND_SERVER_URL = "http://172.20.46.155:8082/"; + /** + * 互联网地址 + */ //private static final String SSO_BACKGROUND_SERVER_URL = "http://120.220.248.247:8081/"; /** @@ -101,7 +107,7 @@ public class YantaiApi { //加密 String organizationIdEn = SM4UtilsForYanTai.dealEncryptData(organizationId); //pwd = URLEncoder.encode(pwd, "UTF-8"); - String url = SSO_BACKGROUND_SERVER_URL + "person/serInfo/getUserByOuGuid"; + String url = SSO_BACKGROUND_SERVER_URL + "person/userInfo/getUserByOuGuid"; Map paramMap = new HashMap<>(); @@ -242,8 +248,9 @@ public class YantaiApi { List childOuInfoByGuid = getChildOuInfoByGuid(organizationId); System.out.println("childOuInfoByGuid:"+JSON.toJSONString(childOuInfoByGuid)); //先用他说的有人的组织id联调 - String orgId = "2b271845-ed51-48aa-9935-00b9e7e06311"; - List userByOuGuid = getUserByOuGuid(orgId); + //String orgId = "2b271845-ed51-48aa-9935-00b9e7e06311"; + //orgId = "2b271845-ed51-48aa-9935-00b9e7e05778"; + List userByOuGuid = getUserByOuGuid(organizationId); System.out.println("getUserByOuGuid:"+JSON.toJSONString(userByOuGuid)); Map apiHeaderMap = getApiHeaderMap();