From 17355977e81bb1f93862b5201424f60af9d093cf Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期六, 05 十二月 2020 16:21:44 +0800 Subject: [PATCH] 2020-12-05 1.增加苹果推送处理。2.暂时通过推送实现,增加挤下线功能。 --- HDL_ON/Entity/DB_ResidenceData.cs | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/HDL_ON/Entity/DB_ResidenceData.cs b/HDL_ON/Entity/DB_ResidenceData.cs index fccfe8f..e20e883 100644 --- a/HDL_ON/Entity/DB_ResidenceData.cs +++ b/HDL_ON/Entity/DB_ResidenceData.cs @@ -35,6 +35,22 @@ else { var curRegion = UserInfo.Current.regionList.Find((obj) => obj.RegionID == CurReginID); + if (curRegion == null) + { + if (UserInfo.Current.regionList != null && UserInfo.Current.regionList.Count > 0) + { + CurReginID = UserInfo.Current.regionList[0].RegionID; + //鎭㈠澶囦唤 + HDLCommon.Current.RestoreHomeBackup(CurReginID); + + return UserInfo.Current.regionList[0]; + } + else + { + return new RegionInfoRes(); + } + } + //if (curRegion == null) //{ // CurReginID = UserInfo.Current.regionList[0].RegionID; @@ -143,6 +159,9 @@ }.SaveFunctionData(); + + + #if DEBUG11 -- Gitblit v1.8.0