| | |
| | | const string chatReportUrl = "http://xssgcenter.secondworld.net.cn:11000/center/eventreport.php?";
|
| | | public void ChatReport(string content, string channelName, string toPlayer, int chatType)
|
| | | {
|
| | | Debug.Log("聊天");
|
| | | #if !UNITY_EDITOR
|
| | | Debug.Log("聊天11111111");
|
| | | bool isFairy = chatType == 3;
|
| | | var tables = new Dictionary<string, string>();
|
| | | tables["ProductID"] = VersionConfig.Get().gameId;
|
| | |
| | | tables["ToRoleID"] = UIHelper.ServerStringTrim(toPlayer);
|
| | | tables["Level"] = PlayerDatas.Instance.baseData.LV.ToString();
|
| | | tables["VIPLevel"] = PlayerDatas.Instance.baseData.VIPLv.ToString();
|
| | | tables["Content"] = WWW.EscapeURL(UIHelper.TrimContentToServer(content));
|
| | | tables["Content"] = System.Uri.EscapeDataString(UIHelper.TrimContentToServer(content));
|
| | | tables["DeviceFlag"] = SDKUtils.Instance.Device == null ? string.Empty : SDKUtils.Instance.Device.uniqueID;
|
| | | var chatStr = StringUtility.Concat(chatReportUrl, HttpRequest.HashtablaToString(tables));
|
| | | Debug.Log("聊天: "+chatStr);
|
| | | HttpRequest.Instance.RequestHttpGet(chatStr, HttpRequest.defaultHttpContentType);
|
| | | #endif
|
| | | }
|