zhaoyang 2 år sedan
förälder
incheckning
92cfc36c9e

+ 9 - 0
GameClient/Assets/Game/HotUpdate/Data/InstanceZonesDataManager.cs

@@ -267,16 +267,23 @@ namespace GFGGame
         /// <returns></returns>
         public static int GetPassLevelOrder(int type, int subType, int chapterId)
         {
+            ET.Log.Debug("zoya_zoya_ 222  _:" + type + "   " + subType + "   " + chapterId);
             var levelCfgId = GetPassLevelCfgId(type, subType, chapterId);
+            ET.Log.Debug("zoya_zoya_ 333  _:" + type + "   " + subType + "   " + chapterId);
             if (levelCfgId == 0)
             {
+                ET.Log.Debug("zoya_zoya_ 444  _:");
                 return 0;
             }
+            ET.Log.Debug("zoya_zoya_ 555  _:" + levelCfgId);
             var levelCfg = StoryLevelCfgArray.Instance.GetCfg(levelCfgId);
+            ET.Log.Debug("zoya_zoya_ 666  _:" + levelCfgId);
             if (levelCfg != null)
             {
+                ET.Log.Debug("zoya_zoya_ 777  _:");
                 return levelCfg.order;
             }
+            ET.Log.Debug("zoya_zoya_ 888  _:");
             return 0;
         }
 
@@ -288,8 +295,10 @@ namespace GFGGame
         public static bool CheckLevelPass(int levelCfgId)
         {
             var levelCfg = StoryLevelCfgArray.Instance.GetCfg(levelCfgId);
+            ET.Log.Debug("zoya_zoya_ 000  _:" + levelCfg);
             if (levelCfg != null)
             {
+                ET.Log.Debug("zoya_zoya_ 111  _:" + levelCfg);
                 var passLevelOrder = GetPassLevelOrder(levelCfg.type, levelCfg.subType, levelCfg.chapterId);
                 return levelCfg.order <= passLevelOrder;
             }

+ 3 - 2
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryChapterView.cs

@@ -168,7 +168,7 @@ namespace GFGGame
                     levelItem.m_txtFightOrder.text = showId;
                     if (levelCfg.fightID.Length > 0)
                     {
-                        ET.Log.Debug("zoya_ 8888  _:" + levelCfg.fightID.Length);
+                        ET.Log.Debug("zoya_ 8888  _:" + levelCfg.fightID);
                         levelItem.m_c1.selectedIndex = 1;
                         int score = InstanceZonesDataManager.GetScoreHighest(levelCfg.id);
                         if (score <= 0)
@@ -198,7 +198,8 @@ namespace GFGGame
                         ET.Log.Debug("zoya_ 44444  _:" + UnlockCount);
 
                     }
-                    ET.Log.Debug("zoya_ 55555  _:" + UnlockCount);
+                    ET.Log.Debug("zoya_ 55555  _:" + levelCfg.id);
+                    ET.Log.Debug("zoya_ 55555  _:" + levelItem.m_holder);
                     levelItem.m_holder.visible = !InstanceZonesDataManager.CheckLevelPass(levelCfg.id);
                     ET.Log.Debug("zoya_ 66666  _:" + UnlockCount);
                     if (levelItem.m_holder.visible)