From bae4016a7b908464955a5d6570dacc24688fcd0f Mon Sep 17 00:00:00 2001 From: wenc000 <450292408@qq.com> Date: Wed, 11 Nov 2020 17:57:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86Oauth=E7=9A=84session?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../oauth/service/department/impl/DepartmentServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloud-common-plugin-oauth/src/main/java/com/cm/common/plugin/oauth/service/department/impl/DepartmentServiceImpl.java b/cloud-common-plugin-oauth/src/main/java/com/cm/common/plugin/oauth/service/department/impl/DepartmentServiceImpl.java index 9af318b..27da846 100644 --- a/cloud-common-plugin-oauth/src/main/java/com/cm/common/plugin/oauth/service/department/impl/DepartmentServiceImpl.java +++ b/cloud-common-plugin-oauth/src/main/java/com/cm/common/plugin/oauth/service/department/impl/DepartmentServiceImpl.java @@ -37,7 +37,7 @@ public class DepartmentServiceImpl extends AbstractService implements IDepartmen @Override public JSONArray listDepartments(Map params) throws AccessTokenException, SearchException { params.put(IApiConsts.ACCESS_TOKEN, ClientTokenManager.getInstance().getClientToken().getAccessToken()); - String result = restTemplateUtil.doPostForm(String.format(IApiConsts.LIST_DEPARTMENT, apiPathProperties.getUserCenter(), params.get("parentId").toString()), params); + String result = restTemplateUtil.doPostFormNormal(String.format(IApiConsts.LIST_DEPARTMENT, apiPathProperties.getUserCenter(), params.get("parentId").toString()), params); if (result == null) { throw new AccessTokenException("认证失败"); } @@ -51,7 +51,7 @@ public class DepartmentServiceImpl extends AbstractService implements IDepartmen public JSONArray listDepartmentsAllByParentId(String parentId) throws AccessTokenException, SearchException { Map params = getHashMap(2); params.put(IApiConsts.ACCESS_TOKEN, ClientTokenManager.getInstance().getClientToken().getAccessToken()); - String result = restTemplateUtil.doPostForm(String.format(IApiConsts.LIST_ALL_DEPARTMENT, apiPathProperties.getUserCenter(), parentId), params); + String result = restTemplateUtil.doPostFormNormal(String.format(IApiConsts.LIST_ALL_DEPARTMENT, apiPathProperties.getUserCenter(), parentId), params); if (result == null) { throw new AccessTokenException("认证失败"); }