From 18bd4dd91e426da4533779abb957a471e9951663 Mon Sep 17 00:00:00 2001 From: "Destiny.Lin" Date: Sun, 18 Aug 2024 13:51:15 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-130867=20=E8=BF=9C=E7=A8=8B=E7=8E=AF?= =?UTF-8?q?=E5=A2=83A=E5=88=87=E6=8D=A2=E5=88=B0=E8=BF=9C=E7=A8=8B?= =?UTF-8?q?=E7=8E=AF=E5=A2=83B=EF=BC=8C=E8=AE=BE=E8=AE=A1=E5=99=A8?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E6=A0=91=E6=B2=A1=E6=9C=89=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/fr/design/env/HttpWorkspaceConnector.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/designer-base/src/main/java/com/fr/design/env/HttpWorkspaceConnector.java b/designer-base/src/main/java/com/fr/design/env/HttpWorkspaceConnector.java index e4f3b22b3f..3687735601 100644 --- a/designer-base/src/main/java/com/fr/design/env/HttpWorkspaceConnector.java +++ b/designer-base/src/main/java/com/fr/design/env/HttpWorkspaceConnector.java @@ -1,7 +1,9 @@ package com.fr.design.env; import com.fanruan.workplace.http.HttpConstants; +import com.fanruan.workplace.http.HttpServiceMap; import com.fanruan.workplace.http.RepositoryManager; +import com.fanruan.workplace.http.info.Stub; import com.fr.log.FineLoggerFactory; import com.fr.stable.StringUtils; import com.fr.workspace.server.repository.authority.RemoteAuthorityRepository; @@ -15,6 +17,7 @@ import com.fr.workspace.connect.WorkspaceConnectionInfo; import com.fr.workspace.connect.WorkspaceConnector; import java.net.InetAddress; +import java.util.Map; import java.util.UUID; /** @@ -52,6 +55,10 @@ public class HttpWorkspaceConnector implements WorkspaceConnector { public WorkspaceClient connect(WorkspaceConnectionInfo connectionInfo) throws Exception { FineWorkspaceHttpClient client = FineWorkspaceHttpClient.create("Http-Client", connectionInfo); try { + for (Map.Entry> entry : HttpServiceMap.getInstance().entrySet()) { + Stub stub = entry.getValue(); + stub.clearProxy(); + } LoginResponseInfoBean bean = RemoteAuthorityRepository.getInstance().login(createLoginBean(connectionInfo)); // 服务器如果没返回token,肯定是出问题了,直接抛出异常 if (StringUtils.isEmpty(bean.getAccessToken())) {