From be95e839f40eb3ddf64706b60cba6dfcf4fad5e5 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期五, 03 四月 2020 14:31:44 +0800
Subject: [PATCH] 2020-04-03 1.去掉登录前ping百度域名的网络监测。

---
 Crabtree/SmartHome/IO/FileUtils.cs |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/Crabtree/SmartHome/IO/FileUtils.cs b/Crabtree/SmartHome/IO/FileUtils.cs
index 964c654..559f8b7 100644
--- a/Crabtree/SmartHome/IO/FileUtils.cs
+++ b/Crabtree/SmartHome/IO/FileUtils.cs
@@ -29,7 +29,7 @@
         {
             foreach (var fileName in ReadRegionFiles (path)) {
                 System.IO.File.Delete (System.IO.Path.Combine (path, fileName));
-                Console.WriteLine ("Del region file :" + fileName);
+                Utlis.WriteLine ("Del region file :" + fileName);
             }
         }
 
@@ -60,7 +60,7 @@
                 System.IO.FileInfo fileInfo = new System.IO.FileInfo (regionRootPath + NextFile.Name);
                 if (fileInfo.Exists) {
                     fileInfo.MoveTo (Application.RootPath + NextFile.Name);
-                    Console.WriteLine ("Restroe : "+ NextFile.Name);
+                    Utlis.WriteLine ("Restroe : "+ NextFile.Name);
                 }
                 Application.RunOnMainThread (() => {
                     int pro = (int)(index * 1.0 / folderCount * 50) + 50;
@@ -111,7 +111,7 @@
 #if DEBUG
             DirectoryInfo root = new DirectoryInfo (RootPath);
             foreach (DirectoryInfo d in root.GetDirectories ()) {
-                Console.WriteLine ("鏂囦欢澶癸細" + d.Name);
+                Utlis.WriteLine ("鏂囦欢澶癸細" + d.Name);
             }
 #endif
             if (System.IO.Directory.Exists (srcPath)) {
@@ -132,14 +132,14 @@
                 List<string> listFiles = new List<string> ();
                 DirectoryInfo TheFolder = new DirectoryInfo (path);
                 foreach (FileInfo NextFile in TheFolder.GetFiles ()) {
-                    Console.WriteLine (NextFile.Name);
+                    Utlis.WriteLine (NextFile.Name);
                 }
 #endif
             }
 
 #if DEBUG
             foreach (DirectoryInfo d in root.GetDirectories ()) {
-                Console.WriteLine ("鏂囦欢澶癸細" + d.Name);
+                Utlis.WriteLine ("鏂囦欢澶癸細" + d.Name);
             }
 #endif
         }
@@ -150,7 +150,7 @@
 		/// <param name="filePath">File path.</param>
 		public static bool Exists (string filePath)
 		{
-			//System.Console.WriteLine ("Exists==" + System.IO.Path.Combine (RootPath, filePath));
+			//Utlis.WriteLine ("Exists==" + System.IO.Path.Combine (RootPath, filePath));
 			return System.IO.File.Exists (System.IO.Path.Combine (RootPath, filePath));
 		}
 
@@ -164,7 +164,7 @@
                 return;
             }
             System.IO.File.Delete (System.IO.Path.Combine (RootPath, fileName));
-            Console.WriteLine ("鍒犻櫎鏂囦欢鍚嶄负锛�" + fileName);
+            Utlis.WriteLine ("鍒犻櫎鏂囦欢鍚嶄负锛�" + fileName);
             //if (UserConfig.Instance.LocalFiles.Contains (fileName)) {
             //    UserConfig.Instance.LocalFiles.Remove (fileName);
             //}
@@ -238,7 +238,7 @@
 				fileName += "_" + (loopID.Length < 2 ? "0" + loopID : loopID);
 			}
             common.SavePath = fileName;
-			Console.WriteLine (fileName);
+			Utlis.WriteLine (fileName);
 			WriteFileByBytes (fileName, SimpleControl.CommonPage.MyEncodingUTF8.GetBytes (Newtonsoft.Json.JsonConvert.SerializeObject (common)));
 		}
 
@@ -260,13 +260,13 @@
 				fs = new FileStream (System.IO.Path.Combine (RootPath, fileName), FileMode.Create, FileAccess.Write);
 				fs.Write (bytes, 0, bytes.Length);
 				fs.Flush ();
-				Console.WriteLine ("SaveFile:" + fileName);
+				Utlis.WriteLine ("SaveFile:" + fileName);
                 //if (!UserConfig.Instance.LocalFiles.Contains (fileName)) {
                 //    UserConfig.Instance.LocalFiles.Add (fileName);
                 //}
 				return true;
 			} catch (Exception ex) {
-				Console.WriteLine ("FileUtiles Code 113:" + ex.ToString ());
+				Utlis.WriteLine ("FileUtiles Code 113:" + ex.ToString ());
 				return false;
 			} finally {
 				try {
@@ -274,7 +274,7 @@
 						fs.Close ();
 					}
 				} catch (Exception ex) {
-					Console.WriteLine ("FileUtils Code 121 :" + ex.ToString ());
+					Utlis.WriteLine ("FileUtils Code 121 :" + ex.ToString ());
 				}
 			}
 		}

--
Gitblit v1.8.0