Exemplo n.º 1
0
        /// <summary>
        /// 发送Http数据
        /// </summary>
        /// <param name="url"></param>
        /// <param name="callBack"></param>
        /// <param name="isPost"></param>
        /// <param name="isGetData"></param>
        /// <param name="dic"></param>
        public void SendData(string url, HttpSendDataCallBack callBack, bool isPost = false, bool isGetData = false, Dictionary <string, object> dic = null)
        {
            //Debug.Log("从池中获取Http访问器");

            HttpRoutine http = GameEntry.Pool.DequeueClassObject <HttpRoutine>();

            http.SendData(url, callBack, isPost, isGetData, dic);
        }
Exemplo n.º 2
0
        /// <summary>
        /// ·¢ËÍHttpÊý¾Ý
        /// </summary>
        /// <param name="url"></param>
        /// <param name="callBack"></param>
        /// <param name="isPost"></param>
        /// <param name="json"></param>
        public void SendData(string url, HttpSendDataCallBack callBack, bool isPost = false, Dictionary <string, object> dic = null)
        {
            HttpRoutine http = GameEntry.Pool.DequeueClassObject <HttpRoutine>();

            http.SendData(url, callBack, isPost, dic);
        }