From daf9df3315b3f3a6370c0ff73414f6da6560d984 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期二, 11 九月 2018 20:11:57 +0800
Subject: [PATCH] 3335 代码维护 如果副本战斗界面发生异常关闭,报一个错误给bugly后台

---
 System/Dungeon/DungeonFightWin.cs |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/System/Dungeon/DungeonFightWin.cs b/System/Dungeon/DungeonFightWin.cs
index 6aa4552..3d4fa8b 100644
--- a/System/Dungeon/DungeonFightWin.cs
+++ b/System/Dungeon/DungeonFightWin.cs
@@ -119,6 +119,22 @@
             DropItemManager.pickUpCallBack -= OnPickItem;
             MainInterfaceWin.Event_Duplicates -= OnChangeFuncBtnPosEvent;
             model.dungeonCoolDownEvent -= OnLeaveMapTimeEvent;
+
+            try
+            {
+                var mapId = PlayerDatas.Instance.baseData.MapID;
+                var mapConfig = Config.Instance.Get<MapConfig>(mapId);
+                if (mapConfig != null && mapConfig.MapFBType != (int)MapType.OpenCountry)
+                {
+                    throw new NullReferenceException();
+                }
+            }
+            catch (Exception ex)
+            {
+                Debug.Log(ex.Message);
+                ExceptionCatcher.ReportException("鍓湰鎴樻枟鐣岄潰寮傚父鍏抽棴", ex.Message);
+            }
+
         }
 
         protected override void OnAfterClose()

--
Gitblit v1.8.0