Browse Source

精英通关后返回章节列表仍选中精英关卡

zhaoyang 2 years ago
parent
commit
ef57a70697

+ 6 - 4
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryController.cs

@@ -32,10 +32,12 @@ namespace GFGGame
                         MainStoryDataManager.currentLevelCfgId = 0;
 
                     }
-                    object[] objects = ViewManager.GetGoBackDatas(typeof(StoryChapterView).FullName);
-                    object obj = null;
-                    if (objects.Length > 1) obj = objects[1];
-                    ViewManager.Show(ViewName.STORY_CHAPTER_LIST_VIEW, obj, null, true);
+                    int index = 0;
+                    if (levelCfg.type == ConstInstanceZonesType.Story && levelCfg.subType == ConstInstanceZonesSubType.Hard)
+                    {
+                        index = 1;
+                    }
+                    ViewManager.Show(ViewName.STORY_CHAPTER_LIST_VIEW, index, null, true);
                 }
                 else
                 {