From 4c17caa61bc3b0a05a2b303bccdfedfbf3853f6d Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期二, 24 十一月 2020 15:58:10 +0800
Subject: [PATCH] 2020-11-24 1.优化登录界面失败提示。

---
 HDL-ON_Android/Application.cs |   15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/HDL-ON_Android/Application.cs b/HDL-ON_Android/Application.cs
index fd6bb1c..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;
             };
 
@@ -110,15 +109,13 @@
                 new HDL_ON.DAL.Server.HttpServerRequest().GetCityInfo(arg1.ToString(), arg2.ToString());
 
                 MainPage.Log($"缁忕含搴�:::{arg1}:{arg2}");
-
             };
-
-
         }
         public static bool IsShowTip = true;
         void init()
         {
             //鎵嬫満鍚嶇О Android.OS.Build.Manufacturer;
+            OnAppConfig.Instance.PhoneName = Android.OS.Build.Manufacturer;
         }
         void checkSomeInfo()
         {
@@ -244,7 +241,7 @@
         void BusSocketStop()
         {
             IsEnterBackground = true;
-            BusSocket.Stop();
+            //BusSocket.Stop();
             OnAppConfig.Instance.unlockTime = DateTime.Now;
         }
 
@@ -256,7 +253,7 @@
         {
             IsEnterBackground = false;
 
-            BusSocket.Start(6000);
+            //BusSocket.Start();
         }
     }
 }
\ No newline at end of file

--
Gitblit v1.8.0