From ed77392566c104f834e292d78ef525aecd802dfc Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期五, 18 十二月 2020 17:00:12 +0800 Subject: [PATCH] 20201218-3 --- HDL-ON_iOS/AppDelegate.cs | 26 ++++++++++++++------------ 1 files changed, 14 insertions(+), 12 deletions(-) diff --git a/HDL-ON_iOS/AppDelegate.cs b/HDL-ON_iOS/AppDelegate.cs index 75344e2..20b5b0b 100644 --- a/HDL-ON_iOS/AppDelegate.cs +++ b/HDL-ON_iOS/AppDelegate.cs @@ -99,18 +99,23 @@ // Save new device token NSUserDefaults.StandardUserDefaults.SetString(DeviceToken, "PushDeviceToken"); - string userPhoneName = UIDevice.CurrentDevice.Name; - UserInfo.Current.PushDeviceToken = DeviceToken; - UserInfo.Current.PhoneName = userPhoneName; - UserInfo.Current.SaveUserInfo(); + //UserInfo.Current.PushDeviceToken = DeviceToken; + //UserInfo.Current.PhoneName = userPhoneName; + //UserInfo.Current.SaveUserInfo(); + OnAppConfig.Instance.PushDeviceToken = DeviceToken; + OnAppConfig.Instance.PhoneName = UIDevice.CurrentDevice.Name; + OnAppConfig.Instance.SaveConfig(); } - if (UserInfo.Current.PushDeviceToken != DeviceToken) + if (OnAppConfig.Instance.PushDeviceToken != DeviceToken) { - string userPhoneName = UIDevice.CurrentDevice.Name; - UserInfo.Current.PushDeviceToken = DeviceToken; - UserInfo.Current.PhoneName = userPhoneName; - UserInfo.Current.SaveUserInfo(); + //string userPhoneName = UIDevice.CurrentDevice.Name; + //UserInfo.Current.PushDeviceToken = DeviceToken; + //UserInfo.Current.PhoneName = userPhoneName; + //UserInfo.Current.SaveUserInfo(); + OnAppConfig.Instance.PushDeviceToken = DeviceToken; + OnAppConfig.Instance.PhoneName = UIDevice.CurrentDevice.Name; + OnAppConfig.Instance.SaveConfig(); } } @@ -209,15 +214,12 @@ public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { - //Shared.Application.FontSize = 12; //鍙栨秷EditText榛樿瀵嗙爜杈撳叆鏂瑰紡 Shared.Application.IsEditTextContentTypePassword = false; //榛樿浣跨敤鑻规柟瀛椾綋 Shared.Application.IsUsePingFang = true; - ////榛樿绂佹闊充箰鏈嶅姟 - //Shared.Application.IsMusicEnable = false; //淇濇寔灞忓箷甯镐寒鎴栬�呰嚜鍔ㄩ攣灞� application.IdleTimerDisabled = false; -- Gitblit v1.8.0