zhaoyang 2 years ago
parent
commit
6bfb56002d
1 changed files with 10 additions and 1 deletions
  1. 10 1
      GameClient/Assets/Game/HotUpdate/ServerProxy/PoemPhotoSProxy.cs

+ 10 - 1
GameClient/Assets/Game/HotUpdate/ServerProxy/PoemPhotoSProxy.cs

@@ -72,15 +72,20 @@ namespace GFGGame
         //将图片上传到华为云
         public static string PushToHWCloud(string signUrl, byte[] buffer)
         {
-
+            ET.Log.Debug("zoya:000" + signUrl);
             // 使用PUT请求上传对象
             HttpWebRequest webRequest = WebRequest.Create(signUrl) as HttpWebRequest;
             webRequest.Method = "PUT";
+            ET.Log.Debug("zoya:111" + webRequest);
 
             webRequest.SendChunked = true;
             webRequest.AllowWriteStreamBuffering = false;
+            ET.Log.Debug("zoya:222" + webRequest);
+
             using (Stream requestStream = webRequest.GetRequestStream())
             {
+                ET.Log.Debug("zoya:333" + webRequest);
+
                 requestStream.Write(buffer, 0, buffer.Length);
             }
 
@@ -88,7 +93,11 @@ namespace GFGGame
             HttpWebResponse webResponse = null;
             try
             {
+                ET.Log.Debug("zoya:444" + webRequest);
+
                 webResponse = webRequest.GetResponse() as HttpWebResponse;
+                ET.Log.Debug("zoya:555" + webRequest);
+
                 return webResponse.StatusCode.ToString();
             }
             catch (WebException ex)