zhaoyang %!s(int64=3) %!d(string=hai) anos
pai
achega
832707c8db

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Data/MainStoryDataManager.cs

@@ -37,7 +37,7 @@ namespace GFGGame
             set
             {
                 int lastLevelCfgId = _currentLevelCfgId;
-                var lastLevelCfg = StoryLevelCfgArray.Instance.GetCfg(lastLevelCfgId);
+                var lastLevelCfg = StoryLevelCfgArray.Instance.GetCfg(_currentLevelCfgId);
                 _currentLevelCfgId = value;
                 var levelCfg = StoryLevelCfgArray.Instance.GetCfg(_currentLevelCfgId);
                 currentChapterCfgId = levelCfg == null ? lastLevelCfg.chapterId : levelCfg.chapterId;

+ 5 - 2
GameClient/Assets/Game/HotUpdate/Views/CommonGame/ApproachOfItemView.cs

@@ -158,6 +158,8 @@ namespace GFGGame
                             _fromeViewDatas = null;
                         }
                         ViewManager.Show(ViewName.STORY_CHAPTER_VIEW, levelCfg.chapterId, _fromeViewDatas, true);
+                        InstanceZonesController.ShowLevelView(levelCfgId, StudioDataManager.Instance.OnFinishStoryLevel);
+
                     }
                     else if (levelCfg.type == ConstInstanceZonesType.Studio)
                     {
@@ -201,9 +203,10 @@ namespace GFGGame
 
                         ViewManager.Show(viewName, new object[] { type, 0 }, _fromeViewDatas);
                         StudioDataManager.Instance.VIEW_NAME = studioCfg.funId; ;
+                        InstanceZonesController.ShowLevelView(levelCfgId, StudioDataManager.Instance.OnFinishStoryLevel);
+                        break;
                     }
-
-                    InstanceZonesController.ShowLevelView(levelCfgId, StudioDataManager.Instance.OnFinishStoryLevel);
+                    StoryController.ShowLevelView(levelCfgId);
                     // StoryController.ShowLevelView(levelCfgId);
                     break;
                 case ConstFunctionId.FU_ZHUANG_HE_CHENG: