From 7153e420d66bce0a06b7e972ac3a5c34197fa2e5 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期三, 18 十一月 2020 20:02:13 +0800 Subject: [PATCH] 2020-11-18 1.修改完善手机绑定和解绑。 --- HDL-ON_iOS/AppDelegate.cs | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/HDL-ON_iOS/AppDelegate.cs b/HDL-ON_iOS/AppDelegate.cs index 8b3d875..fd63c60 100644 --- a/HDL-ON_iOS/AppDelegate.cs +++ b/HDL-ON_iOS/AppDelegate.cs @@ -144,7 +144,7 @@ { Console.WriteLine("OnResignActivation"); OnAppConfig.Instance.unlockTime = DateTime.Now; - BusSocket.Stop(); + //BusSocket.Stop(); } public override void DidEnterBackground(UIApplication application) @@ -157,7 +157,7 @@ public override void WillEnterForeground(UIApplication application) { SharedMethod.SharedMethod.IsBackground = false; - BusSocket.Start(6000); + //BusSocket.Start(); new AppUnlockPage().LoadPage(); Console.WriteLine("WillEnterForeground"); UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0; @@ -198,7 +198,9 @@ if (MainPage.LoginUser != null && nsCount != MainPage.LoginUser.areaCode.ToString()) { - int.TryParse(nsCount,out MainPage.LoginUser.areaCode); + //int.TryParse(nsCount,out MainPage.LoginUser.areaCode); + //2020-11-18 + MainPage.LoginUser.areaCode = nsCount; OnAppConfig.Instance.SaveUserConfig(); } application.IdleTimerDisabled = true; -- Gitblit v1.8.0