From 9c8baf7e7e1169ebdf7d5f7ed33ab29dd5fcbf18 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期一, 14 十二月 2020 17:45:17 +0800 Subject: [PATCH] 2020-12-14 1.解锁设置问题修复,增加面容ID验证。2.错误码对接增加。 --- HDL_ON/Entity/Room.cs | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/HDL_ON/Entity/Room.cs b/HDL_ON/Entity/Room.cs index dcad772..dfcbf83 100644 --- a/HDL_ON/Entity/Room.cs +++ b/HDL_ON/Entity/Room.cs @@ -46,7 +46,7 @@ public SpatialInfo(string spatialType) { roomType = "FLOOR"; - parentId = UserInfo.Current.CurReginID; + parentId = DB_ResidenceData.Instance.CurrentRegion.RegionID; } public string roomId = ""; @@ -420,15 +420,19 @@ rooms = null; } - public void ClearRooms() + public void Clear() { - if (floors != null) + if (_currentSpatial != null) { - floors.Clear(); - } - if (rooms != null) - { - rooms.Clear(); + if (_currentSpatial.floors != null) + { + _currentSpatial.floors.Clear(); + } + if (_currentSpatial.rooms != null) + { + _currentSpatial.rooms.Clear(); + } + _currentSpatial = null; } } -- Gitblit v1.8.0