|
@@ -532,7 +532,7 @@ class HomeViewModel : BaseViewModel() {
|
|
onlineCategoryLiveData.postValue(result)
|
|
onlineCategoryLiveData.postValue(result)
|
|
|
|
|
|
}.catch {
|
|
}.catch {
|
|
- errorCallback.postValue(it.message)
|
|
|
|
|
|
+ errorCallback.postValue(it.message?:"")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -544,7 +544,7 @@ class HomeViewModel : BaseViewModel() {
|
|
addQuery("lang", MMkvUtils.getString(CURRENT_LANGUAGE) ?: "EN")
|
|
addQuery("lang", MMkvUtils.getString(CURRENT_LANGUAGE) ?: "EN")
|
|
}.await().hotTags.toMutableList()
|
|
}.await().hotTags.toMutableList()
|
|
}.catch {
|
|
}.catch {
|
|
- errorCallback.postValue(it.message)
|
|
|
|
|
|
+ errorCallback.postValue(it.message?:"")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -588,7 +588,7 @@ class HomeViewModel : BaseViewModel() {
|
|
)
|
|
)
|
|
}
|
|
}
|
|
}.catch {
|
|
}.catch {
|
|
- errorCallback.postValue(it.message)
|
|
|
|
|
|
+ errorCallback.postValue(it.message?:"")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -650,7 +650,7 @@ class HomeViewModel : BaseViewModel() {
|
|
moreLocalRecipeLiveData.postValue(foodList)
|
|
moreLocalRecipeLiveData.postValue(foodList)
|
|
}
|
|
}
|
|
}.catch {
|
|
}.catch {
|
|
- errorCallback.postValue(it.message)
|
|
|
|
|
|
+ errorCallback.postValue(it.message?:"")
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
return false
|
|
return false
|
|
@@ -714,7 +714,7 @@ class HomeViewModel : BaseViewModel() {
|
|
onlineHotWordSearchRecipesLiveData.postValue(result)
|
|
onlineHotWordSearchRecipesLiveData.postValue(result)
|
|
|
|
|
|
}.catch {
|
|
}.catch {
|
|
- errorCallback.postValue(it.message)
|
|
|
|
|
|
+ errorCallback.postValue(it.message?:"")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -765,7 +765,7 @@ class HomeViewModel : BaseViewModel() {
|
|
}
|
|
}
|
|
moreSearchOnlineRecipeLiveData.postValue(foodContentList)
|
|
moreSearchOnlineRecipeLiveData.postValue(foodContentList)
|
|
}.catch {
|
|
}.catch {
|
|
- errorCallback.postValue(it.message)
|
|
|
|
|
|
+ errorCallback.postValue(it.message?:"")
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
return false
|
|
return false
|
|
@@ -782,7 +782,7 @@ class HomeViewModel : BaseViewModel() {
|
|
addQuery("lang", MMkvUtils.getString(CURRENT_LANGUAGE) ?: "EN")
|
|
addQuery("lang", MMkvUtils.getString(CURRENT_LANGUAGE) ?: "EN")
|
|
}.await().informs.toMutableList()
|
|
}.await().informs.toMutableList()
|
|
}.catch {
|
|
}.catch {
|
|
- errorCallback.postValue(it.message)
|
|
|
|
|
|
+ errorCallback.postValue(it.message?:"")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|