From 78bfe524ea4776c47f6314e56e97f39970b00fce Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期二, 25 九月 2018 15:07:07 +0800
Subject: [PATCH] Merge branch 'master' into 1871天赋功能

---
 System/HttpRequest/HttpRequest.cs |   67 ---------------------------------
 1 files changed, 0 insertions(+), 67 deletions(-)

diff --git a/System/HttpRequest/HttpRequest.cs b/System/HttpRequest/HttpRequest.cs
index 328ce41..3998e4a 100644
--- a/System/HttpRequest/HttpRequest.cs
+++ b/System/HttpRequest/HttpRequest.cs
@@ -11,73 +11,6 @@
     public const string defaultHttpContentType = "application/x-www-form-urlencoded";
     public const string jsonHttpContentType = "application/json ; charset=utf-8";
 
-    public void RequestWWW(string _url, int _retry = 3, Action<bool, string> _result = null)
-    {
-        StartCoroutine(Co_RequestWWW(_url, null, _retry, _result));
-    }
-
-    public void RequestWWW(string _url, IDictionary<string, string> _parameters, int _retry = 3, Action<bool, string> _result = null)
-    {
-        StartCoroutine(Co_RequestWWW(_url, _parameters, _retry, _result));
-    }
-
-    IEnumerator Co_RequestWWW(string _url, IDictionary<string, string> _parameters, int _retry = 3, Action<bool, string> _result = null)
-    {
-        if (_url == null || _url.Length == 0)
-        {
-            DebugEx.LogError("PHPDataComm post 鍙傛暟鏈夐敊");
-            if (_result != null)
-            {
-                _result(false, string.Empty);
-                _result = null;
-            }
-            yield break;
-        }
-
-        int i = 0;
-        bool isSuccess = false;
-
-        byte[] data = null;
-        if (_parameters != null)
-        {
-            data = Encoding.UTF8.GetBytes(HashtablaToString(_parameters));
-        }
-
-        var PostData = data == null ? new WWW(_url) : new WWW(_url, data);
-
-        while (!PostData.isDone)
-        {
-            yield return null;
-        }
-
-        if (PostData.error != null)
-        {
-            Debug.LogErrorFormat("WWW 鏁版嵁閫氫俊,璇锋眰鏁版嵁澶辫触锛歿0},宸茬粡灏濊瘯,{1},娆�", PostData.error, i);
-        }
-        else
-        {
-            if (!string.IsNullOrEmpty(PostData.text))
-            {
-                DebugEx.LogFormat("WWW 鏁版嵁閫氫俊,璇锋眰鏁版嵁鎴愬姛锛歿0}", PostData.text);
-                isSuccess = true;
-                if (_result != null)
-                {
-                    _result(true, PostData.text);
-                    _result = null;
-                }
-            }
-        }
-
-        if (!isSuccess)
-        {
-            if (_result != null)
-            {
-                _result(false, string.Empty);
-                _result = null;
-            }
-        }
-    }
-
     public void RequestHttpPost(string _url, IDictionary<string, string> _parameters, string _contentType, int _retry = 3, Action<bool, string> _result = null)
     {
         var content = HashtablaToString(_parameters);

--
Gitblit v1.8.0