From 80bfeba2f59f1de4be6a3e2b52a2caeea906bab7 Mon Sep 17 00:00:00 2001 From: vito Date: Tue, 9 Aug 2016 10:31:59 +0800 Subject: [PATCH] =?UTF-8?q?bugfix=EF=BC=9A=E8=AE=BA=E5=9D=9B=E5=9F=9F?= =?UTF-8?q?=E5=90=8D=E6=94=B9=E5=8F=98=EF=BC=8C=E5=AF=BC=E8=87=B4=E7=99=BB?= =?UTF-8?q?=E9=99=86=E6=88=90=E5=8A=9F=E6=A0=87=E5=BF=97=E5=87=BA=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- designer/src/com/fr/design/mainframe/bbs/BBSLoginDialog.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/designer/src/com/fr/design/mainframe/bbs/BBSLoginDialog.java b/designer/src/com/fr/design/mainframe/bbs/BBSLoginDialog.java index 2845ccece3..5140ea15ad 100644 --- a/designer/src/com/fr/design/mainframe/bbs/BBSLoginDialog.java +++ b/designer/src/com/fr/design/mainframe/bbs/BBSLoginDialog.java @@ -36,7 +36,6 @@ public class BBSLoginDialog extends UIDialog { private static final int DIALOG_WIDTH = 400; private static final int DIALOG_HEIGHT = 200; - private static final String LOGIN_SUCCESS_FLAG = "http://bbs.finereport.com"; private static final Font DEFAULT_FONT = FRFont.getInstance(FRFont.DEFAULT_FONTNAME, 0, 14); private static final int TIME_OUT = 10000; @@ -287,12 +286,13 @@ public class BBSLoginDialog extends UIDialog { FRLogger.getLogger().error(e.getMessage()); } String url = SiteCenter.getInstance().acquireUrlByKind("bbs.login") + "&username=" + username + "&password=" + password; + String loginSuccessFlag = SiteCenter.getInstance().acquireUrlByKind("bbs"); HttpClient client = new HttpClient(url); client.setTimeout(TIME_OUT); if (client.getResponseCodeNoException() == HttpURLConnection.HTTP_OK) { try { String res = client.getResponseText(EncodeConstants.ENCODING_GBK); - if (res.contains(LOGIN_SUCCESS_FLAG)) { + if (res.contains(loginSuccessFlag)) { return true; } } catch (Exception e) {