Browse Source

提交人:jtm
提交内容:bug fixed

江天明 1 year ago
parent
commit
1915fda3d8

+ 1 - 2
BusinessMain/src/main/java/com/develop/main/ui/RecipesFragment.kt

@@ -321,8 +321,7 @@ class RecipesFragment : CommonBVMFragment<FragmentCommeListBinding, HomeViewMode
                 } else {
                     if (viewModel.recipesType == RecipesType.ONLINE) {
                         if (!viewModel.loadMoreOnLineRecipeList(
-                                viewModel.categoryCode,
-                                viewModel.currCategoryName,
+                                viewModel.categoryCode, currentHotWord,
                             )
                         ) {
                             finishLoadMoreWithNoMoreData()

+ 1 - 0
BusinessMain/src/main/java/com/develop/main/viewmodel/HomeViewModel.kt

@@ -592,6 +592,7 @@ class HomeViewModel : BaseViewModel() {
 
     fun loadMoreOnLineRecipeList(category: String, name: String): Boolean {
         if (hasMoreOnline) {
+            tempOnLineRecipes.clear()
             currentPage += 1
             scopeNetLife {
                 val result = Get<RecipesListResult>(Api.GET_RECIPES) {