Authored by Gino Zhang

判断dest是否存在时需要考虑空字符串的时候

... ... @@ -146,7 +146,7 @@ public class SearchRecommendServiceImpl implements ISearchRecommendService {
return defaultSuggestRecommendation();
}
JSONObject recommendResult = recommendBySuggestIndex(paramMap, keywordsToSearch, dest != null);
JSONObject recommendResult = recommendBySuggestIndex(paramMap, keywordsToSearch, StringUtils.isNotEmpty(dest));
if (recommendResult == null || CollectionUtils.isEmpty((List<?>) recommendResult.get("terms_suggestion"))) {
recommendResult = defaultSuggestRecommendation();
}
... ...