Browse Source

是写错了,服务器端代码还没传才写的localhost,先把debug的url删掉,待会传一下服务器端代码,服务器端加了debug使用的url之后这里再判断,现在服务器那边只有正式接口,还没有供测试的接口

master
XiaXiang 8 years ago
parent
commit
9703b53711
  1. 5
      designer/src/com/fr/design/mainframe/alphafine/AlphaFineConstants.java
  2. 2
      designer/src/com/fr/design/mainframe/alphafine/search/manager/RecommendSearchManager.java

5
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";
}

2
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();

Loading…
Cancel
Save