From 52e05a5fb6e07afbb14960fc3cbb8a8971e19eb2 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期三, 25 十一月 2020 20:08:56 +0800 Subject: [PATCH] 2020-11-25 1.TOKEN过期刷新处理 --- HDL-ON_Android/Application.cs | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/HDL-ON_Android/Application.cs b/HDL-ON_Android/Application.cs index 6d17a30..1e33f4e 100644 --- a/HDL-ON_Android/Application.cs +++ b/HDL-ON_Android/Application.cs @@ -63,14 +63,13 @@ BaseActivity.NetworkStateChanged += (int obj) => { - if (!IsEnterBackground) { - BusSocket.Stop(); + //BusSocket.Stop(); new System.Threading.Thread(() => { System.Threading.Thread.Sleep(1000); - BusSocket.Start(6000); + //BusSocket.Start(); }) { IsBackground = true }.Start(); } @@ -94,7 +93,7 @@ BaseActivity.OnDestroyAction += (activity) => { Console.WriteLine("OnDestroyAction"); - BusSocket.Stop(); + //BusSocket.Stop(); OnAppConfig.Instance.unlockTime = DateTime.Now; }; @@ -116,6 +115,7 @@ void init() { //鎵嬫満鍚嶇О Android.OS.Build.Manufacturer; + OnAppConfig.Instance.PhoneName = Android.OS.Build.Manufacturer; } void checkSomeInfo() { @@ -241,7 +241,7 @@ void BusSocketStop() { IsEnterBackground = true; - BusSocket.Stop(); + //BusSocket.Stop(); OnAppConfig.Instance.unlockTime = DateTime.Now; } @@ -253,7 +253,7 @@ { IsEnterBackground = false; - BusSocket.Start(6000); + //BusSocket.Start(); } } } \ No newline at end of file -- Gitblit v1.8.0