少年修仙传客户端代码仓库
client_Wu Xijin
2018-08-24 d4b711bcc9a9e71c5835276f8ac5130329707da5
Utility/OperationLogCollect.cs
@@ -130,4 +130,29 @@
    }
    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
    }
}