From: 刘洪青 Date: Fri, 20 Sep 2019 05:56:55 +0000 (+0800) Subject: fix: 修正接口调用地址错误 X-Git-Tag: v0.0.1^2~23 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=21ec15bf40a696501f9eada29df48eb74af2dac6;p=institute%2Fsw-backend.git fix: 修正接口调用地址错误 --- diff --git a/gateway/src/main/java/com/supwisdom/institute/backend/gateway/authn/remote/web/client/AuthnAccountRemoteRestTemplate.java b/gateway/src/main/java/com/supwisdom/institute/backend/gateway/authn/remote/web/client/AuthnAccountRemoteRestTemplate.java index 65cf89f..6259608 100644 --- a/gateway/src/main/java/com/supwisdom/institute/backend/gateway/authn/remote/web/client/AuthnAccountRemoteRestTemplate.java +++ b/gateway/src/main/java/com/supwisdom/institute/backend/gateway/authn/remote/web/client/AuthnAccountRemoteRestTemplate.java @@ -37,7 +37,7 @@ public class AuthnAccountRemoteRestTemplate { final String url = this.url + StringUtils.replaceEach(path, new String[] {"{username}"}, new String[] {username}); log.debug(url); - return authnAccountRestTemplate.getForObject(this.url + path, JSONObject.class); + return authnAccountRestTemplate.getForObject(url, JSONObject.class); } catch (Exception e) { e.printStackTrace(); @@ -67,7 +67,7 @@ public class AuthnAccountRemoteRestTemplate { final String url = this.url + StringUtils.replaceEach(path, new String[] {"{username}"}, new String[] {username}); log.debug(url); - return authnAccountRestTemplate.getForObject(this.url + path, JSONObject.class); + return authnAccountRestTemplate.getForObject(url, JSONObject.class); } catch (Exception e) { e.printStackTrace(); @@ -82,7 +82,7 @@ public class AuthnAccountRemoteRestTemplate { final String url = this.url + StringUtils.replaceEach(path, new String[] {"{username}"}, new String[] {username}); log.debug(url); - return authnAccountRestTemplate.getForObject(this.url + path, JSONObject.class); + return authnAccountRestTemplate.getForObject(url, JSONObject.class); } catch (Exception e) { e.printStackTrace(); @@ -97,7 +97,7 @@ public class AuthnAccountRemoteRestTemplate { final String url = this.url + StringUtils.replaceEach(path, new String[] {"{username}"}, new String[] {username}); log.debug(url); - return authnAccountRestTemplate.getForObject(this.url + path, JSONObject.class); + return authnAccountRestTemplate.getForObject(url, JSONObject.class); } catch (Exception e) { e.printStackTrace(); @@ -112,7 +112,7 @@ public class AuthnAccountRemoteRestTemplate { final String url = this.url + StringUtils.replaceEach(path, new String[] {"{username}"}, new String[] {username}); log.debug(url); - return authnAccountRestTemplate.getForObject(this.url + path, JSONObject.class); + return authnAccountRestTemplate.getForObject(url, JSONObject.class); } catch (Exception e) { e.printStackTrace();