|
|
|
@ -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++) { |
|
|
|
|