浏览代码

剧情章节问题

zhangyuqian 1 年之前
父节点
当前提交
8d0c21f0e8

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterListView.cs

@@ -63,7 +63,7 @@ namespace GFGGame
             else if (this.viewData != null && (this.viewData as object[]).Length > 1)
             {
                 subType = (int)(this.viewData as object[])[0];
-                chapterIndex = (int)(this.viewData as object[])[1];
+                chapterIndex = Mathf.Max(1, (int)(this.viewData as object[])[1]);
             }
             _ui.m_listType.selectedIndex = subType;
             _ui.m_listChapter.touchable = false;

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

@@ -37,7 +37,7 @@ namespace GFGGame
                     {
                         index = 1;
                     }
-                    ViewManager.Show<StoryChapterListView>(new object[] { index , nextStoryChapterCfg.order - 1}, null, true);
+                    ViewManager.Show<StoryChapterListView>(new object[] { index , nextStoryChapterCfg.order}, null, true);
                 }
                 else
                 {