Commit 0a6cecb2 by 霍志良

feat:热门词和联想词问题修改

parent b2845ee5
...@@ -20,8 +20,8 @@ import java.util.List; ...@@ -20,8 +20,8 @@ import java.util.List;
*/ */
public final class DemoGlobalConfig implements IConfigModule { public final class DemoGlobalConfig implements IConfigModule {
String APP_DOMAIN = "https://api.github.com/"; String APP_DOMAIN = "https://api.github.com/";
public static String appEnv = YDLConstants.ENV_TEST; // public static String appEnv = YDLConstants.ENV_TEST;
// public static String appEnv = YDLConstants.ENV_PROD; public static String appEnv = YDLConstants.ENV_PROD;
// public static String appEnv = YDLConstants.ENV_NEW_TEST;//配置未上传到maven库 // public static String appEnv = YDLConstants.ENV_NEW_TEST;//配置未上传到maven库
@Override @Override
......
ext { ext {
dev_mode = false //组件发布的时候需要设置为false dev_mode = false//组件发布的时候需要设置为false
ydl2PublishVersion = "0.2.1.9-SNAPSHOT" ydl2PublishVersion = "0.3.0.3-SNAPSHOT"
ydlPublishVersion = [ ydlPublishVersion = [
// -------------- 业务模块 -------------- // -------------- 业务模块 --------------
//第三步 若干 //第三步 若干
......
...@@ -113,14 +113,11 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon ...@@ -113,14 +113,11 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon
// 搜索的关联词 // 搜索的关联词
var relatedWords = "" var relatedWords = ""
var isRecommendWords = false var isRecommendWords = false
if (!lenovoResultSuccess){ // 如果每次输入内容后联想词结果还没返回结果则直接进行搜索 if (!lenovoResultSuccess && !etSearch.text.toString()
if (etSearch.text.toString().isNullOrEmpty()) { .isNullOrEmpty()
doSearch(etSearch.hint.toString(), relatedWords, isRecommendWords) ) { // 如果每次输入内容后联想词结果还没返回结果则直接进行搜索
} else { doSearch(etSearch.text.toString(), relatedWords, isRecommendWords)
doSearch(etSearch.text.toString(), relatedWords, isRecommendWords) } else if (searchSuggestList.isNotEmpty() && searchSuggestList.size > 0) {
}
}else if (searchSuggestList.isNotEmpty() && searchSuggestList.size > 0) {
if (searchSuggestList[0].suggest_relations.size > 0) { if (searchSuggestList[0].suggest_relations.size > 0) {
relatedWords = searchSuggestList[0].suggest_relations[0] relatedWords = searchSuggestList[0].suggest_relations[0]
isRecommendWords = true isRecommendWords = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment