Browse Source

Merge pull request #2974 in DESIGN/design from bugfix/10.0 to feature/10.0

* commit '17984bf328bbff872b04383b60cdc74f77084bf1':
  REPORT-44298 alpha-fine搜不到帮助文档 【问题原因】之前的搜索帮助文档的url发生变化了 【改动思路】在crm里提交云端配置中对应value值修改的申请,代码中也需要调整一下url,以及修改一下返回数据中获取搜索结果的key
research/11.0
superman 4 years ago
parent
commit
97786f44a8
  1. 4
      designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/DocumentSearchManager.java

4
designer-realize/src/main/java/com/fr/design/mainframe/alphafine/search/manager/impl/DocumentSearchManager.java

@ -65,12 +65,12 @@ public class DocumentSearchManager implements AlphaFineSearchProvider {
}
SearchResult searchResult = new SearchResult();
for (int j = 0; j < searchText.length; j++) {
String url = AlphaFineConstants.DOCUMENT_SEARCH_URL + searchText[j] + AlphaFineConstants.FIRST_PAGE;
String url = AlphaFineConstants.DOCUMENT_SEARCH_URL + searchText[j];
try {
String result = HttpToolbox.get(url);
AlphaFineHelper.checkCancel();
JSONObject jsonObject = new JSONObject(result);
JSONArray jsonArray = jsonObject.optJSONArray("docdata");
JSONArray jsonArray = jsonObject.optJSONArray("list");
if (jsonArray != null) {
for (int i = 0; i < jsonArray.length(); i++) {

Loading…
Cancel
Save