hxp
2018-09-20 22349866372ce1b603b8eebcf5d43e7772ac0ddb
3660 【后端】后台新增聊天黑名单功能
9个文件已修改
18 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTalk.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_ForbidTalk.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_ForbidTalkByIP.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_GMTForbidTalk.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_GMTUnForbidTalk.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_UnForbidTalk.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_UnForbidTalkByIP.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
@@ -555,6 +555,9 @@
    if tjgTime:
        curPlayer.SendGameServerRefreshState(IPY_GameWorld.CDBPlayerRefresh_HappyPoint, tjgTime)
    
    # 如果被禁言的,上线同步前端
    if curPlayer.GetGMForbidenTalk():
        curPlayer.SendPropertyRefresh(ShareDefine.CDBPlayerRefresh_ForbidenTalk, curPlayer.GetGMForbidenTalk(), False)
    return
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
@@ -5524,6 +5524,7 @@
def SetGMForbidenTalk(curPlayer, value):
    curPlayer.SetGMForbidenTalk(value)
    curPlayer.SendGameServerRefreshState(ShareDefine.CDBPlayerRefresh_ForbidenTalk, value)
    curPlayer.SendPropertyRefresh(ShareDefine.CDBPlayerRefresh_ForbidenTalk, value, False)
    return
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTalk.py
@@ -261,7 +261,7 @@
def __CheckTalk(curPlayer, content, length, tick, checkGMForbidenTalk = True, checkSameMsg = True):
    if checkGMForbidenTalk and GetGMToolForbidTalk(curPlayer):
        #GeRen_chenxin_921745 对不起,您已被GM禁言,发送信息失败
        PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_921745")
        #PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_921745")
        return False
    
    #间隔时间
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_ForbidTalk.py
@@ -46,7 +46,7 @@
    curFindPlayer_GMOper.Sync_SaveToDB()
    
    PlayerControl.SetGMForbidenTalk(curFindPlayer, 1)
    PlayerControl.NotifyCode(curFindPlayer, "GeRen_chenxin_80731", [lastTime])
    #PlayerControl.NotifyCode(curFindPlayer, "GeRen_chenxin_80731", [lastTime])
    return
#---------------------------------------------------------------------
#执行结果
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_ForbidTalkByIP.py
@@ -42,7 +42,7 @@
    
    #直接禁
    PlayerControl.SetGMForbidenTalk(curFindPlayer, 1)
    PlayerControl.NotifyCode(curFindPlayer , "ForbidIP_Talk" )
    #PlayerControl.NotifyCode(curFindPlayer , "ForbidIP_Talk" )
    return
#---------------------------------------------------------------------
## 执行结果
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_GMTForbidTalk.py
@@ -64,7 +64,7 @@
    curFindPlayer_GMOper.Sync_SaveToDB()
    
    PlayerControl.SetGMForbidenTalk(curFindPlayer, 1)
    PlayerControl.NotifyCode(curFindPlayer, "GeRen_chenxin_80731", [lastTime])
    #PlayerControl.NotifyCode(curFindPlayer, "GeRen_chenxin_80731", [lastTime])
    
    curFindName = curFindPlayer.GetPlayerName()
    #流向
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_GMTUnForbidTalk.py
@@ -61,7 +61,7 @@
            break
    
    PlayerControl.SetGMForbidenTalk(curFindPlayer, 0)
    PlayerControl.NotifyCode(curFindPlayer, "GeRen_liubo_97211")
    #PlayerControl.NotifyCode(curFindPlayer, "GeRen_liubo_97211")
    return ''
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_UnForbidTalk.py
@@ -50,7 +50,7 @@
    
    if result:
        PlayerControl.SetGMForbidenTalk(curFindPlayer, 0)
        PlayerControl.NotifyCode(curFindPlayer, "Player_Operate_RegainTalk")
        #PlayerControl.NotifyCode(curFindPlayer, "Player_Operate_RegainTalk")
    
    return
#---------------------------------------------------------------------
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/RemoteQuery/GY_Query_UnForbidTalkByIP.py
@@ -40,7 +40,7 @@
    
    #直接禁
    PlayerControl.SetGMForbidenTalk(curFindPlayer, 0)
    PlayerControl.NotifyCode(curFindPlayer , "RestoreIP_Talk" )
    #PlayerControl.NotifyCode(curFindPlayer , "RestoreIP_Talk" )
    return
#---------------------------------------------------------------------
#执行结果