66 【公会】基础主体-服务端(优化成员基础信息变更时同步,除战力同步CD60秒,其他属性CD2秒;)
2个文件已修改
8 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamily.py 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
@@ -779,11 +779,16 @@
    
    # --------------------------------------------------------------
    
    syncCD = 2000
    if refreshType == IPY_PlayerDefine.CDBPlayerRefresh_FightPower:
        syncCD = 60 * 1000
    # 同步给相关跨服
    tick = GameWorld.GetGameWorld().GetTick()
    lastSyncTick = curPlayer.GetDictByKey("S2C_PlayerBaseInfo")
    if lastSyncTick and (tick - lastSyncTick) <= 2000:
    if lastSyncTick and (tick - lastSyncTick) <= syncCD:
        # 短时间内只同步一次
        #GameWorld.DebugLog("同步基础属性CD中! refreshType=%s,syncCD=%s,pass=%s" % (refreshType, syncCD, tick - lastSyncTick))
        return
    curPlayer.SetDict("S2C_PlayerBaseInfo", tick)
    
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFamily.py
@@ -295,6 +295,7 @@
    if not member:
        return
    member.RefreshMemberByID(playerID)
    Broadcast_FamilyInfo(familyID, changeMemIDList=[playerID], excludeIDList=[playerID]) # 成员信息变更
    return
def FamilyPyPackForwarding(curPlayer, clientData, tick, funcName, needResult=False, reqCD=0.5, reqDataEx=None):