/// <summary> /// 组装请求数据包装 /// </summary> /// <param name="time">服务器时间</param> /// <param name="url">请求地址</param> /// <returns></returns> public IPostData GroupPostDataPack(long time) { if (groupData.Count <= 0) return null; _currentPostData = new PostData(); _currentPostData.commandId = new List<string>(); _currentPostData.resultBack = new List<HttpNetResultDelegate>(); string urlParams = PostParamGroup(_currentPostData, time, userID, requestParams); _currentPostData.url = string.Format(requestURL, urlParams); //url组装 return _currentPostData as IPostData; }
/// <summary> /// 清除所有数据 /// </summary> public void Clear() { groupData.Clear(); _currentPostData = null; }