少年修仙传客户端代码仓库
client_linchunjie
2018-09-06 619a37b0c8c78845a034d1e36a5d77654f88a23e
3324 【1.0.15】【主干】聊天监控仙盟频道添加仙盟名
2个文件已修改
8 ■■■■■ 已修改文件
System/Chat/ChatCtrl.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Utility/OperationLogCollect.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Chat/ChatCtrl.cs
@@ -237,7 +237,7 @@
                default:
                    return;
            }
            OperationLogCollect.Instance.ChatReport(content, channelName, chatType == ChatInfoType.Friend ? toPlayer : string.Empty);
            OperationLogCollect.Instance.ChatReport(content, channelName, chatType == ChatInfoType.Friend ? toPlayer : string.Empty, chatType);
        }
        catch (Exception e)
        {
Utility/OperationLogCollect.cs
@@ -131,9 +131,10 @@
    }
    const string chatReportUrl = "http://monitor.secondworld.net.cn:12000/chat_receiver?";
    public void ChatReport(string content, string channelName, string toPlayer)
    public void ChatReport(string content, string channelName, string toPlayer, ChatInfoType chatType)
    {
#if !UNITY_EDITOR
        bool isFairy = chatType == ChatInfoType.Fairy;
        var tables = new Dictionary<string, string>();
        tables["ProductID"] = "snxxz";
        tables["OperatorID"] = VersionConfig.Get().appId;
@@ -145,7 +146,8 @@
        tables["IP"] = DeviceUtility.GetIp();
        tables["ChatChannel"] = channelName;
        tables["AccountID"] = ModelCenter.Instance.GetModel<LoginModel>().sdkLoginResult.account;
        tables["RoleID"] = PlayerDatas.Instance.baseData.PlayerName;
        tables["RoleID"] = StringUtility.Contact(isFairy ? PlayerDatas.Instance.baseData.FamilyName : string.Empty,
           isFairy ? "-" : string.Empty, PlayerDatas.Instance.baseData.PlayerName);
        tables["ToRoleID"] = toPlayer;
        tables["Level"] = PlayerDatas.Instance.baseData.LV.ToString();
        tables["VIPLevel"] = PlayerDatas.Instance.baseData.VIPLv.ToString();