private void DoSend(C2S_MSG_DATA postData) { HttpPostRequest request = new HttpPostRequest(GameNetMgr.GAME_LOGIC_URL, OnReceiveData, postData.ToByteArray()); _lstPostRequest.Add(request); request.Send(); Logger.LogWarning("[HttpRequest.Send() ==> send url:" + request.RequestUrl + ", msgId:" + postData.MsgCode + ", msg len:" + postData.Data.Length + "]"); }
public void ReportPurchase(string storeId, string localizedPrice) { var message = new ReportPurchaseMessage(); message.StoreId = storeId; message.LocalizedPrice = localizedPrice; var json = JsonUtility.ToJson(message); HttpPostRequest.Send(ReportPurchaseUrl, json, null); }
public void ReportFirstRun() { HttpPostRequest.Send(ReportFirstRunUrl, null, null); }