From 06696e6f225733a60b03eea4a7c6374053d92c1d Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 14 四月 2020 14:15:35 +0800
Subject: [PATCH] 20200414

---
 HDL-ON_iOS/AppDelegate.cs |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/HDL-ON_iOS/AppDelegate.cs b/HDL-ON_iOS/AppDelegate.cs
index 8bdad2d..afe1206 100644
--- a/HDL-ON_iOS/AppDelegate.cs
+++ b/HDL-ON_iOS/AppDelegate.cs
@@ -97,14 +97,14 @@
                 NSUserDefaults.StandardUserDefaults.SetString(DeviceToken, "PushDeviceToken");
                 string userPhoneName = UIDevice.CurrentDevice.Name;
 
-                UserConfig.Instance.PushDeviceToken = DeviceToken;
+                OnAppConfig.Instance.PushDeviceToken = DeviceToken;
                 //UserConfig.Instance.phoneName = userPhoneName;
                 //UserConfig.Instance.SaveUserConfig();
             }
-            if (UserConfig.Instance.PushDeviceToken != DeviceToken)
+            if (OnAppConfig.Instance.PushDeviceToken != DeviceToken)
             {
                 string userPhoneName = UIDevice.CurrentDevice.Name;
-                UserConfig.Instance.PushDeviceToken = DeviceToken;
+                OnAppConfig.Instance.PushDeviceToken = DeviceToken;
                 //UserConfig.Instance.phoneName = userPhoneName;
                 //UserConfig.Instance.SaveUserConfig();
             }
@@ -183,14 +183,14 @@
             application.StatusBarStyle = UIStatusBarStyle.DarkContent;
 
             string nsCount = NSLocale.CurrentLocale.CountryCode;
-            if (nsCount != UserConfig.Instance.CountryCode)
+            if (nsCount != OnAppConfig.Instance.CountryCode)
             {
-                UserConfig.Instance.CountryCode = nsCount;
-                UserConfig.Instance.SaveUserConfig();
+                OnAppConfig.Instance.CountryCode = nsCount;
+                OnAppConfig.Instance.SaveUserConfig();
             }
             application.IdleTimerDisabled = true;
             application.RegisterForRemoteNotificationTypes(UIRemoteNotificationType.Alert | UIRemoteNotificationType.Badge | UIRemoteNotificationType.Sound);
-            
+
             Window = new UIWindow(UIScreen.MainScreen.Bounds);
             var Root = new UINavigationController(new ViewController()) { NavigationBarHidden = true };
             Window.RootViewController = Root;

--
Gitblit v1.8.0