/** ****************** Append Get/Post Method's parameter **************** */ public void appendPara(BaseRequestParam reqParam) { _paramMem = reqParam; appendParaBegin(); appendPara(_paramMem.generatePara()); appendParaEnd(); }
public void AppendCommonParam(RequestType requestType, BaseRequestParam param, string url) { if (task != null) { // Debug.Log(">>>>>>>>>>>>>>>>>>>>>"); this.request = HttpRequestFactory.createHttpRequestInstance(requestType, param); request.Url = url; // Debug.Log(param.generatePara()); string data = param.generatePara(); //{"gameid":1,"version":"1.0","md5":"FC9387A064E004309239851A9E5864E3"} url = url + "?" + GetFormatData(data); task.AppendThirdParam(ThirdPartyRequestType.CMS, url); task.ErrorOccured += testHttpResp_Error; task.afterCompleted += testHttpResp_Sucess; } }