From 6d3ba9484472d090532434e53667c096652149ce Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 25 九月 2020 09:56:14 +0800 Subject: [PATCH] 202009251 --- HDL-ON_iOS/AppDelegate.cs | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/HDL-ON_iOS/AppDelegate.cs b/HDL-ON_iOS/AppDelegate.cs index 4932f56..8b3d875 100644 --- a/HDL-ON_iOS/AppDelegate.cs +++ b/HDL-ON_iOS/AppDelegate.cs @@ -195,9 +195,10 @@ application.StatusBarStyle = UIStatusBarStyle.DarkContent; string nsCount = NSLocale.CurrentLocale.CountryCode; - if (nsCount != OnAppConfig.Instance.CountryCode) + + if (MainPage.LoginUser != null && nsCount != MainPage.LoginUser.areaCode.ToString()) { - OnAppConfig.Instance.CountryCode = nsCount; + int.TryParse(nsCount,out MainPage.LoginUser.areaCode); OnAppConfig.Instance.SaveUserConfig(); } application.IdleTimerDisabled = true; -- Gitblit v1.8.0