From 9703b53711a25384f180ae4e23c10c0457e24d88 Mon Sep 17 00:00:00 2001 From: XiaXiang Date: Wed, 28 Jun 2017 09:21:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=AF=E5=86=99=E9=94=99=E4=BA=86=EF=BC=8C?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8=E7=AB=AF=E4=BB=A3=E7=A0=81=E8=BF=98?= =?UTF-8?q?=E6=B2=A1=E4=BC=A0=E6=89=8D=E5=86=99=E7=9A=84localhost=EF=BC=8C?= =?UTF-8?q?=E5=85=88=E6=8A=8Adebug=E7=9A=84url=E5=88=A0=E6=8E=89=EF=BC=8C?= =?UTF-8?q?=E5=BE=85=E4=BC=9A=E4=BC=A0=E4=B8=80=E4=B8=8B=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=99=A8=E7=AB=AF=E4=BB=A3=E7=A0=81=EF=BC=8C=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=99=A8=E7=AB=AF=E5=8A=A0=E4=BA=86debug=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E7=9A=84url=E4=B9=8B=E5=90=8E=E8=BF=99=E9=87=8C=E5=86=8D?= =?UTF-8?q?=E5=88=A4=E6=96=AD=EF=BC=8C=E7=8E=B0=E5=9C=A8=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=99=A8=E9=82=A3=E8=BE=B9=E5=8F=AA=E6=9C=89=E6=AD=A3=E5=BC=8F?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=EF=BC=8C=E8=BF=98=E6=B2=A1=E6=9C=89=E4=BE=9B?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fr/design/mainframe/alphafine/AlphaFineConstants.java | 5 +---- .../alphafine/search/manager/RecommendSearchManager.java | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/designer/src/com/fr/design/mainframe/alphafine/AlphaFineConstants.java b/designer/src/com/fr/design/mainframe/alphafine/AlphaFineConstants.java index d5b4ed298..b10a61e36 100644 --- a/designer/src/com/fr/design/mainframe/alphafine/AlphaFineConstants.java +++ b/designer/src/com/fr/design/mainframe/alphafine/AlphaFineConstants.java @@ -83,10 +83,7 @@ public class AlphaFineConstants { public static final String CLOUD_SERVER_URL = "http://cloud.fanruan.com/api/monitor/record_of_afsearch/single"; - public static final String SEARCHAPI = "http://lcloud.fanruan.com/api/intelligence/search/recommend?searchKey="; + public static final String SEARCH_API = "http://cloud.fanruan.com/api/intelligence/search/recommend?searchKey="; - //private static final String SEARCHAPI = "http://localhost:8080/cloud/intelligence/search/recommend?searchKey="; - - //public static final String CLOUD_TEST_URL = "http://localhost:8080/cloud/monitor/record_of_afsearch/single"; } diff --git a/designer/src/com/fr/design/mainframe/alphafine/search/manager/RecommendSearchManager.java b/designer/src/com/fr/design/mainframe/alphafine/search/manager/RecommendSearchManager.java index f9df17553..e9ec20295 100644 --- a/designer/src/com/fr/design/mainframe/alphafine/search/manager/RecommendSearchManager.java +++ b/designer/src/com/fr/design/mainframe/alphafine/search/manager/RecommendSearchManager.java @@ -41,7 +41,7 @@ public class RecommendSearchManager implements AlphaFineSearchProcessor { this.recommendModelList = new SearchResult(); if (DesignerEnvManager.getEnvManager().getAlphaFineConfigManager().isContainRecommend()) { String result; - HttpClient httpClient = new HttpClient(AlphaFineConstants.SEARCHAPI + CodeUtils.cjkEncode(searchText)); + HttpClient httpClient = new HttpClient(AlphaFineConstants.SEARCH_API + CodeUtils.cjkEncode(searchText)); httpClient.asGet(); if (!httpClient.isServerAlive()) { return getNoConnectList();