蓝色星空 1 жил өмнө
parent
commit
190a1632d6

+ 1 - 0
Assets/Scripts/Net/HttpTool.cs

@@ -102,6 +102,7 @@ public class HttpTool : MonoSingleton<HttpTool>
                 webRequest.SetRequestHeader(v.Key, v.Value);
                 Debug.Log(v.Value + "   " + methodName);
             }
+            webRequest.timeout = 5;
             yield return webRequest.SendWebRequest();
 
             if (webRequest.isHttpError || webRequest.isNetworkError)