hxp
2021-02-20 71a5b8c236d7538053a3a893adccaa0d59798521
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py
@@ -124,6 +124,8 @@
        pid = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_PlayerFromPID)
        dataDict["pid"] = pid
        dataDict["fightPower"] = curPlayer.GetFightPower()
        dataDict["PlayerLV"] = curPlayer.GetLV()
        dataDict["IP"] = curPlayer.GetIP()
    dataDict["time"] = str(datetime.datetime.today()).split(".")[0]
    
    dataStr = str(dataDict)
@@ -152,10 +154,18 @@
    ip = curPlayer.GetIP()
    loginTime = curPlayer.GetLoginTime()
    name = curPlayer.GetName()
    mapID = GameWorld.GetMap().GetMapID()
    lineID = GameWorld.GetGameWorld().GetLineID()
    
    dataDict = {'Type':'login', 'IP':str(ip), 'AccID':accID,
    dataDict = {'Type':'login', 'IP':str(ip), 'AccID':accID, 'mapID':mapID, 'lineID':lineID,
                'Name':name, 'LoginTime':str(loginTime), 'LogoutTime':'', 'MFPFightPower':GetMFPFightPowerInfo(curPlayer)}
    
    if GameWorld.IsCrossServer():
        regCrossZoneID = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_ReqCrossFBZoneID)
        regCrossMapID = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_ReqCrossFBMapID)
        regCrossLineID = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_ReqCrossFBFuncLine)
        dataDict.update({"RegCrossZoneID":regCrossZoneID, "RegCrossMapID":regCrossMapID, "RegCrossLineID":regCrossLineID})
    #发送封包
    SendEventPack("LogInOut", dataDict, curPlayer)
    return
@@ -354,7 +364,7 @@
    SendEventPack("CTGError", dataDict, curPlayer)
    GameWorld.ErrLog("%s. %s" % (errorInfo, addDict), curPlayer.GetPlayerID())
    
    GameWorld.SendGameStateMail("CTGError:%s - %s"%(errorInfo, dataDict))
    GameWorld.SendGameError("GameWarning", "CTGError:%s - %s"%(errorInfo, dataDict))
    return
def DR_CTGOK(curPlayer, addDict):