| | |
| | |
|
| | | }
|
| | |
|
| | | const string chatReportUrl = "http://monitor.secondworld.net.cn:12000/chat_receiver";
|
| | | public void ChatReport(string content, string channelName, string toPlayer)
|
| | | {
|
| | | #if !UNITY_EDITOR
|
| | | var tables = new Dictionary<string, string>();
|
| | | tables["ProductID"] = "snxxz";
|
| | | tables["OperatorID"] = VersionConfig.Get().appId;
|
| | | tables["OperatorName"] = string.Empty;
|
| | | tables["RegionName"] = StringUtility.Contact("s", ServerListCenter.Instance.currentServer.region_flag);
|
| | | tables["RegionID"] = ServerListCenter.Instance.currentServer.region_flag.ToString();
|
| | | tables["EventID"] = 9003.ToString();
|
| | | tables["Time"] = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
|
| | | tables["IP"] = DeviceUtility.GetIp();
|
| | | tables["ChatChannel"] = channelName;
|
| | | tables["AccountID"] = ModelCenter.Instance.GetModel<LoginModel>().sdkLoginResult.account;
|
| | | tables["RoleID"] = PlayerDatas.Instance.baseData.PlayerName;
|
| | | tables["ToRoleID"] = toPlayer;
|
| | | tables["Level"] = PlayerDatas.Instance.baseData.LV.ToString();
|
| | | tables["VIPLevel"] = PlayerDatas.Instance.baseData.VIPLv.ToString();
|
| | | tables["Content"] = content;
|
| | |
|
| | | HttpRequest.Instance.RequestHttpGet(StringUtility.Contact(chatReportUrl, HttpRequest.HashtablaToString(tables)), HttpRequest.defaultHttpContentType);
|
| | | #endif
|
| | | }
|
| | |
|
| | | }
|