private IEnumerator SendRequestCoroutine(WebInterfaceBase wif, WWWForm form)
        {
            string url = wif.Url;

            using (UnityWebRequest request = UnityWebRequest.Post(url, form))
            {
                DateTime begin = DateTime.Now;

                wif.OnSetDownloadHandler(request);
                yield return(request.SendWebRequest());

                DateTime end = DateTime.Now;

                if (!request.isNetworkError && !request.isHttpError)
                {
                    Log.Info(string.Format("[{0}] 发起网络请求:[{1}] {2}\r\n[{3}] 收到回复:{4}字节  string:{5}"
                                           , begin.ToString("mm:ss:fff"), wif.Name, url, end.ToString("mm:ss:fff"), request.downloadHandler.data.Length, wif.OnGetDownloadString(request.downloadHandler)));

                    wif.OnRequestFinished(request.downloadHandler);
                }
                else
                {
                    Log.Error(string.Format("[{0}] 发起网络请求:[{1}] {2}\r\n[{3}] 网络请求出错:{4}", begin.ToString("mm:ss:fff"), wif, url, end.ToString("mm:ss:fff"), request.error));

                    wif.OnRequestFinished(null);
                }
            }
        }
        private IEnumerator SendRequestCoroutine(WebInterfaceBase wif, params string[] parameter)
        {
            StringBuilder builder = new StringBuilder();

            builder.Append(wif.Url);
            if (parameter.Length > 0)
            {
                builder.Append("?");
                builder.Append(parameter[0]);
            }
            for (int i = 1; i < parameter.Length; i++)
            {
                builder.Append("&");
                builder.Append(parameter[i]);
            }
            string url = builder.ToString();

            using (UnityWebRequest request = UnityWebRequest.Get(url))
            {
                DateTime begin = DateTime.Now;

                wif.OnSetDownloadHandler(request);
                yield return(request.SendWebRequest());

                DateTime end = DateTime.Now;

                if (!request.isNetworkError && !request.isHttpError)
                {
                    Log.Info(string.Format("[{0}] 发起网络请求:[{1}] {2}\r\n[{3}] 收到回复:{4}字节  string:{5}"
                                           , begin.ToString("mm:ss:fff"), wif.Name, url, end.ToString("mm:ss:fff"), request.downloadHandler.data.Length, wif.OnGetDownloadString(request.downloadHandler)));

                    wif.OnRequestFinished(request.downloadHandler);
                }
                else
                {
                    Log.Error(string.Format("[{0}] 发起网络请求:[{1}] {2}\r\n[{3}] 网络请求出错:{4}", begin.ToString("mm:ss:fff"), wif, url, end.ToString("mm:ss:fff"), request.error));

                    wif.OnRequestFinished(null);
                }
            }
        }