From 06696e6f225733a60b03eea4a7c6374053d92c1d Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 14 四月 2020 14:15:35 +0800
Subject: [PATCH] 20200414

---
 HDL_ON/DAL/Server/HttpServerRequestBase.cs |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/HDL_ON/DAL/Server/HttpServerRequestBase.cs b/HDL_ON/DAL/Server/HttpServerRequestBase.cs
index 4f800ce..b1956ba 100644
--- a/HDL_ON/DAL/Server/HttpServerRequestBase.cs
+++ b/HDL_ON/DAL/Server/HttpServerRequestBase.cs
@@ -17,10 +17,10 @@
 
             var webClient = new WebClient();
             #region
-            webClient.Headers.Add("CONTENT-TYPE", "application/json/");
+            webClient.Headers.Add("CONTENT-TYPE", "application/json");
             if (needAuthorization)
             {
-                webClient.Headers.Add("Authorization", MainPage.LoginUser.LoginTokenString);
+                webClient.Headers.Add("Authorization", MainPage.LoginUser.loginTokenString);
             }
             byte[] bytes = null;
             try
@@ -29,7 +29,7 @@
             }
             catch (Exception ex)
             {
-                Console.WriteLine(ex.Message);
+                MainPage.Log($"http upload data error : {ex.Message}");
                 revertObj.StateCode = "Self:Net_Error";
                 revertObj.ErrorInfo_En = "Network anomaly";
                 revertObj.ErrorInfo_Zh = "缃戠粶寮傚父";
@@ -47,7 +47,7 @@
             }
             catch (Exception ex)
             {
-                Console.WriteLine(ex.Message);
+                MainPage.Log($"http upload data error : {ex.Message}");
             }
             return revertObj;
             #endregion

--
Gitblit v1.8.0