hch
2019-06-28 32c4493813924e3f13485c803cd9b27a558927fd
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/EventReport.py
@@ -122,20 +122,26 @@
        playerInfo = urllib.urlencode({"RoleID": curPlayer.GetName(),
                          "AccountID": GameWorld.GetPlatformAccID(curPlayer.GetAccID()),
                          "IP": curPlayer.GetIP(),
                          "Level": curPlayer.GetLV()})
                          "Level": curPlayer.GetLV(),
                          "DeviceFlag": curPlayer.GetAccountData().GetDeviceFlag()})
        
        OperatorID = GameWorld.GetPlayerPlatform(curPlayer.GetAccID())
        OperatorID = GameWorld.GetPlayerPlatform(curPlayer)
        RegionName = GameWorld.GetPlayerServerSID(curPlayer)
        playerInfo = "&%s"%playerInfo
        
    else:
        # 合服情况,玩家取自己服发送,非玩家数据按指定平台配置发,没有则取配置主服
        RegionName = 's%s'%GameWorld.GetPlayerMainServerID(OperatorID)
        # 合服情况,玩家取自己服发送,非玩家数据按指定平台配置发
        sid = GameWorld.GetPlayerMainServerID(OperatorID)
        if not sid:
            GameWorld.ErrLog("GetPlayerMainServerID: %s-%s"%(OperatorID, sid))
            return
        RegionName = 's%s'%sid
    if eventParam:
        eventParam = "&%s"%eventParam
    
    
    getUrl = "%s?ProductID=%s&OperatorID=%s&RegionName=%s&EventID=%s&%s&Time=%s%s"%(\
    getUrl = "%s?ProductID=%s&OperatorID=%s&RegionName=%s&EventID=%s%s&Time=%s%s"%(\
             ReportUrl, ProductID, OperatorID, RegionName, eventActionID, playerInfo,
             str(datetime.datetime.today()).split('.')[0], eventParam)
    GameWorld.DebugLog("EventReport: %s"%getUrl)
@@ -150,7 +156,7 @@
#  @return None
def WriteEvent(eventClass):
    return
    if GameWorld.IsMergeServer():
    if GameWorld.IsCrossServer():
        return
    
    if eventClass.GetScribeEventName() not in ReadChConfig.GetEvalChConfig("EventReportID"):
@@ -570,7 +576,9 @@
def WriteEvent_login(curPlayer):
    if curPlayer.GetIP() == "127.0.0.1":
        return
    EventReport(ShareDefine.Def_UserAction_Login, "Job=%s&SessionID=%s"%(curPlayer.GetJob(), GameWorld.GetSessionID(curPlayer)), curPlayer)
    EventReport(ShareDefine.Def_UserAction_Login, "Job=%s&SessionID=%s&Version=%s"%(
                                curPlayer.GetJob(), GameWorld.GetSessionID(curPlayer),
                                curPlayer.GetAccountData().GetLastLoginTime()), curPlayer)
    return
@@ -798,26 +806,28 @@
def WriteEvent_chat_log(curPlayer, content, cmc_name, tagName="", addinfo=""):
    return
    '''
    @todo: 写聊天监控记录
    @param content: 聊天内容
    @param cmc_name: 聊天频道标识
    @param tagName: 私聊对象
    @param addinfo: 额外信息
    '''
    chatlogEvent = chat_log()
    chatlogEvent.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    chatlogEvent.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    chatlogEvent.chr_name = curPlayer.GetName()
    chatlogEvent.content = __GetEventChatContent(content)
    chatlogEvent.cmc_name = cmc_name
    chatlogEvent.ip = curPlayer.GetIP()
    chatlogEvent.account_name = chatlogEvent.account_id
    chatlogEvent.account_type = GameWorld.GetAccountType(curPlayer)
    chatlogEvent.chr_level = GetScribeEvent_chr_level(curPlayer)
    chatlogEvent.object = tagName
    chatlogEvent.addinfo = addinfo
    WriteEvent(chatlogEvent)
    #===========================================================================
    # '''
    # @todo: 写聊天监控记录
    # @param content: 聊天内容
    # @param cmc_name: 聊天频道标识
    # @param tagName: 私聊对象
    # @param addinfo: 额外信息
    # '''
    # chatlogEvent = chat_log()
    # chatlogEvent.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    # chatlogEvent.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    # chatlogEvent.chr_name = curPlayer.GetName()
    # chatlogEvent.content = __GetEventChatContent(content)
    # chatlogEvent.cmc_name = cmc_name
    # chatlogEvent.ip = curPlayer.GetIP()
    # chatlogEvent.account_name = chatlogEvent.account_id
    # chatlogEvent.account_type = GameWorld.GetAccountType(curPlayer)
    # chatlogEvent.chr_level = GetScribeEvent_chr_level(curPlayer)
    # chatlogEvent.object = tagName
    # chatlogEvent.addinfo = addinfo
    # WriteEvent(chatlogEvent)
    #===========================================================================
    return
def __GetEventChatContent(content):
@@ -853,19 +863,21 @@
#  @param event_name: 事件名称
#  @param comments: 备注或附加信息
def WriteEvent_custom_events(curPlayer, event_name, comments):
    customEvent = custom_events()
    customEvent.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    customEvent.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    customEvent.event_name = event_name
    customEvent.session_id = GameWorld.GetSessionID(curPlayer)
    customEvent.ip = curPlayer.GetIP()
    customEvent.account_name = customEvent.account_id
    customEvent.account_type = GameWorld.GetAccountType(curPlayer)
    customEvent.chr_name = curPlayer.GetPlayerName()
    customEvent.chr_level = GetScribeEvent_chr_level(curPlayer)
    customEvent.comments = CommFunc.GetStrCutoff(comments, 255)
    WriteEvent(customEvent)
    #===========================================================================
    # customEvent = custom_events()
    # customEvent.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    # customEvent.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    # customEvent.event_name = event_name
    # customEvent.session_id = GameWorld.GetSessionID(curPlayer)
    #
    # customEvent.ip = curPlayer.GetIP()
    # customEvent.account_name = customEvent.account_id
    # customEvent.account_type = GameWorld.GetAccountType(curPlayer)
    # customEvent.chr_name = curPlayer.GetPlayerName()
    # customEvent.chr_level = GetScribeEvent_chr_level(curPlayer)
    # customEvent.comments = CommFunc.GetStrCutoff(comments, 255)
    # WriteEvent(customEvent)
    #===========================================================================
    return
#// A1 01 玩家电脑信息 #tagCMPCInfo
@@ -979,16 +991,18 @@
    
def WriteEvent_horse_class(curPlayer, befClassLV, befExp, costCnt, aftClassLV, aftExp):
    ## 写坐骑进阶记录
    horseClass = horse_class()
    horseClass.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    horseClass.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    horseClass.chr_name = curPlayer.GetPlayerName()
    horseClass.bef_class_lv = befClassLV
    horseClass.bef_exp = befExp
    horseClass.cost_item_cnt = costCnt
    horseClass.aft_class_lv = aftClassLV
    horseClass.aft_exp = aftExp
    WriteEvent(horseClass)
    #===========================================================================
    # horseClass = horse_class()
    # horseClass.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    # horseClass.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    # horseClass.chr_name = curPlayer.GetPlayerName()
    # horseClass.bef_class_lv = befClassLV
    # horseClass.bef_exp = befExp
    # horseClass.cost_item_cnt = costCnt
    # horseClass.aft_class_lv = aftClassLV
    # horseClass.aft_exp = aftExp
    # WriteEvent(horseClass)
    #===========================================================================
    return
class wing_class(ScribeEvent):
@@ -1023,16 +1037,18 @@
    
def WriteEvent_wing_class(curPlayer, befClassLV, befExp, costCnt, aftClassLV, aftExp):
    ## 写翅膀进阶记录
    wingClass = wing_class()
    wingClass.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    wingClass.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    wingClass.chr_name = curPlayer.GetPlayerName()
    wingClass.bef_class_lv = befClassLV
    wingClass.bef_exp = befExp
    wingClass.cost_item_cnt = costCnt
    wingClass.aft_class_lv = aftClassLV
    wingClass.aft_exp = aftExp
    WriteEvent(wingClass)
    #===========================================================================
    # wingClass = wing_class()
    # wingClass.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    # wingClass.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    # wingClass.chr_name = curPlayer.GetPlayerName()
    # wingClass.bef_class_lv = befClassLV
    # wingClass.bef_exp = befExp
    # wingClass.cost_item_cnt = costCnt
    # wingClass.aft_class_lv = aftClassLV
    # wingClass.aft_exp = aftExp
    # WriteEvent(wingClass)
    #===========================================================================
    return
class pet_lv(ScribeEvent):
@@ -1064,15 +1080,17 @@
    
def WriteEvent_pet_lv(curPlayer, befLV, aftLV, befExp, aftExp):
    ## 写宠物升级记录
    petLV = pet_lv()
    petLV.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    petLV.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    petLV.chr_name = curPlayer.GetPlayerName()
    petLV.bef_lv = befLV
    petLV.aft_lv = aftLV
    petLV.bef_exp = befExp
    petLV.aft_exp = aftExp
    WriteEvent(petLV)
    #===========================================================================
    # petLV = pet_lv()
    # petLV.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    # petLV.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    # petLV.chr_name = curPlayer.GetPlayerName()
    # petLV.bef_lv = befLV
    # petLV.aft_lv = aftLV
    # petLV.bef_exp = befExp
    # petLV.aft_exp = aftExp
    # WriteEvent(petLV)
    #===========================================================================
    return
class pet_class(ScribeEvent):
@@ -1107,16 +1125,18 @@
    
def WriteEvent_pet_class(curPlayer, petName, befClassLV, befExp, aftClassLV, aftExp):
    ## 写宠物进阶记录
    petLV = pet_class()
    petLV.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    petLV.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    petLV.chr_name = curPlayer.GetPlayerName()
    petLV.pet_name = petName
    petLV.bef_class_lv = befClassLV
    petLV.bef_exp = befExp
    petLV.aft_class_lv = aftClassLV
    petLV.aft_exp = aftExp
    WriteEvent(petLV)
    #===========================================================================
    # petLV = pet_class()
    # petLV.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    # petLV.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    # petLV.chr_name = curPlayer.GetPlayerName()
    # petLV.pet_name = petName
    # petLV.bef_class_lv = befClassLV
    # petLV.bef_exp = befExp
    # petLV.aft_class_lv = aftClassLV
    # petLV.aft_exp = aftExp
    # WriteEvent(petLV)
    #===========================================================================
    return
class give_money(ScribeEvent):
@@ -1149,15 +1169,17 @@
    
def WriteEvent_give_money(curPlayer, source, typeName, addMoney, totalMoney):
    ## 写货币产出记录
    giveMoney = give_money()
    giveMoney.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    giveMoney.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    giveMoney.chr_name = curPlayer.GetPlayerName()
    giveMoney.source = source
    giveMoney.type_name = typeName
    giveMoney.addMoney = addMoney
    giveMoney.total_money = totalMoney
    WriteEvent(giveMoney)
    #===========================================================================
    # giveMoney = give_money()
    # giveMoney.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    # giveMoney.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    # giveMoney.chr_name = curPlayer.GetPlayerName()
    # giveMoney.source = source
    # giveMoney.type_name = typeName
    # giveMoney.addMoney = addMoney
    # giveMoney.total_money = totalMoney
    # WriteEvent(giveMoney)
    #===========================================================================
    return
class pay_money(ScribeEvent):
@@ -1190,15 +1212,17 @@
    
def WriteEvent_pay_money(curPlayer, reasonName, typeName, costMoney, totalMoney):
    ## 写货币消耗记录
    payMoney = pay_money()
    payMoney.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    payMoney.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    payMoney.chr_name = curPlayer.GetPlayerName()
    payMoney.reason_name = reasonName
    payMoney.type_name = typeName
    payMoney.costmoney = costMoney
    payMoney.total_money = totalMoney
    WriteEvent(payMoney)
    #===========================================================================
    # payMoney = pay_money()
    # payMoney.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    # payMoney.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    # payMoney.chr_name = curPlayer.GetPlayerName()
    # payMoney.reason_name = reasonName
    # payMoney.type_name = typeName
    # payMoney.costmoney = costMoney
    # payMoney.total_money = totalMoney
    # WriteEvent(payMoney)
    #===========================================================================
    return
class equip_item(ScribeEvent):
@@ -1230,14 +1254,16 @@
    
def WriteEvent_orange_equip(curPlayer, place, classLV, quality):
    ## 写玩家装备统计
    equipItem = equip_item()
    equipItem.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    equipItem.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    equipItem.chr_name = curPlayer.GetPlayerName()
    equipItem.equip_place = place
    equipItem.class_lv = classLV
    equipItem.item_quality = quality
    WriteEvent(equipItem)
    #===========================================================================
    # equipItem = equip_item()
    # equipItem.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    # equipItem.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    # equipItem.chr_name = curPlayer.GetPlayerName()
    # equipItem.equip_place = place
    # equipItem.class_lv = classLV
    # equipItem.item_quality = quality
    # WriteEvent(equipItem)
    #===========================================================================
    return
class item_record(ScribeEvent):
@@ -1325,17 +1351,19 @@
   
def WriteEvent_coin_to_gold(curPlayer, orderID, eventName, coin, prizeCoin, addGold):
    return
    coinToGold = coin_to_gold()
    coinToGold.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    coinToGold.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    coinToGold.chr_name = curPlayer.GetPlayerName()
    coinToGold.order_id = orderID
    coinToGold.event_name = eventName
    coinToGold.coin = coin
    coinToGold.coin_prize = prizeCoin
    coinToGold.gold = addGold
    coinToGold.total_gold = curPlayer.GetGold()
    WriteEvent(coinToGold)
    #===========================================================================
    # coinToGold = coin_to_gold()
    # coinToGold.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    # coinToGold.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    # coinToGold.chr_name = curPlayer.GetPlayerName()
    # coinToGold.order_id = orderID
    # coinToGold.event_name = eventName
    # coinToGold.coin = coin
    # coinToGold.coin_prize = prizeCoin
    # coinToGold.gold = addGold
    # coinToGold.total_gold = curPlayer.GetGold()
    # WriteEvent(coinToGold)
    #===========================================================================
    return
class god_weapon_lv(ScribeEvent):
@@ -1371,17 +1399,19 @@
    
def WriteEvent_god_weapon_lv(curPlayer, godWeaponName, befLV, befExp, costCnt, aftLV, aftExp):
    ## 写神兵升级记录
    godWeaponLV = god_weapon_lv()
    godWeaponLV.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    godWeaponLV.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    godWeaponLV.chr_name = curPlayer.GetPlayerName()
    godWeaponLV.god_weapon_name = godWeaponName
    godWeaponLV.bef_lv = befLV
    godWeaponLV.bef_exp = befExp
    godWeaponLV.cost_item_cnt = costCnt
    godWeaponLV.aft_lv = aftLV
    godWeaponLV.aft_exp = aftExp
    WriteEvent(godWeaponLV)
    #===========================================================================
    # godWeaponLV = god_weapon_lv()
    # godWeaponLV.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    # godWeaponLV.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    # godWeaponLV.chr_name = curPlayer.GetPlayerName()
    # godWeaponLV.god_weapon_name = godWeaponName
    # godWeaponLV.bef_lv = befLV
    # godWeaponLV.bef_exp = befExp
    # godWeaponLV.cost_item_cnt = costCnt
    # godWeaponLV.aft_lv = aftLV
    # godWeaponLV.aft_exp = aftExp
    # WriteEvent(godWeaponLV)
    #===========================================================================
    return
class rune_lv(ScribeEvent):
@@ -1414,15 +1444,17 @@
    
def WriteEvent_rune_lv(curPlayer, runeName, costruneMoney, aftLV, aftruneMoney):
    ## 写符印升级记录
    runeLV = rune_lv()
    runeLV.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    runeLV.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    runeLV.chr_name = curPlayer.GetPlayerName()
    runeLV.rune_name = runeName
    runeLV.cost_rune_money = costruneMoney
    runeLV.aft_lv = aftLV
    runeLV.aft_rune_money = aftruneMoney
    WriteEvent(runeLV)
    #===========================================================================
    # runeLV = rune_lv()
    # runeLV.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    # runeLV.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    # runeLV.chr_name = curPlayer.GetPlayerName()
    # runeLV.rune_name = runeName
    # runeLV.cost_rune_money = costruneMoney
    # runeLV.aft_lv = aftLV
    # runeLV.aft_rune_money = aftruneMoney
    # WriteEvent(runeLV)
    #===========================================================================
    return
class change_name(ScribeEvent):
@@ -1452,13 +1484,15 @@
    
def WriteEvent_change_name(curPlayer, oldName, newName):
    ## 改名记录
    changeName = change_name()
    changeName.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    changeName.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    changeName.chr_name = curPlayer.GetPlayerName()
    changeName.old_name = oldName
    changeName.new_name = newName
    WriteEvent(changeName)
    #===========================================================================
    # changeName = change_name()
    # changeName.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    # changeName.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    # changeName.chr_name = curPlayer.GetPlayerName()
    # changeName.old_name = oldName
    # changeName.new_name = newName
    # WriteEvent(changeName)
    #===========================================================================
    return
class add_zhenqi(ScribeEvent):
@@ -1491,20 +1525,22 @@
    
def WriteEvent_add_zhenqi(curPlayer, eventName, eventData, addValue, totalValue):
    ## 真气产出记录
    if eventData:
        eventData = str(eventData)
        eventData = eventData.replace("\"", "'")
        eventData = eventData.replace(",", "|")
    addZhenQi = add_zhenqi()
    addZhenQi.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    addZhenQi.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    addZhenQi.chr_name = curPlayer.GetPlayerName()
    addZhenQi.eventName = eventName
    addZhenQi.eventData = eventData
    addZhenQi.addValue = addValue
    addZhenQi.totalValue = totalValue
    WriteEvent(addZhenQi)
    #===========================================================================
    # if eventData:
    #    eventData = str(eventData)
    #    eventData = eventData.replace("\"", "'")
    #    eventData = eventData.replace(",", "|")
    #
    # addZhenQi = add_zhenqi()
    # addZhenQi.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    # addZhenQi.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    # addZhenQi.chr_name = curPlayer.GetPlayerName()
    # addZhenQi.eventName = eventName
    # addZhenQi.eventData = eventData
    # addZhenQi.addValue = addValue
    # addZhenQi.totalValue = totalValue
    # WriteEvent(addZhenQi)
    #===========================================================================
    return
class lost_zhenqi(ScribeEvent):
@@ -1537,20 +1573,22 @@
    
def WriteEvent_lost_zhenqi(curPlayer, eventName, eventData, lostValue, totalValue):
    ## 真气消耗记录
    if eventData:
        eventData = str(eventData)
        eventData = eventData.replace("\"", "'")
        eventData = eventData.replace(",", "|")
    lostZhenQi = lost_zhenqi()
    lostZhenQi.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    lostZhenQi.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    lostZhenQi.chr_name = curPlayer.GetPlayerName()
    lostZhenQi.eventName = eventName
    lostZhenQi.eventData = eventData
    lostZhenQi.lostValue = lostValue
    lostZhenQi.totalValue = totalValue
    WriteEvent(lostZhenQi)
    #===========================================================================
    # if eventData:
    #    eventData = str(eventData)
    #    eventData = eventData.replace("\"", "'")
    #    eventData = eventData.replace(",", "|")
    #
    # lostZhenQi = lost_zhenqi()
    # lostZhenQi.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    # lostZhenQi.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    # lostZhenQi.chr_name = curPlayer.GetPlayerName()
    # lostZhenQi.eventName = eventName
    # lostZhenQi.eventData = eventData
    # lostZhenQi.lostValue = lostValue
    # lostZhenQi.totalValue = totalValue
    # WriteEvent(lostZhenQi)
    #===========================================================================
    return
class coat_lv(ScribeEvent):
@@ -1585,18 +1623,20 @@
def WriteEvent_coat_lv(curPlayer, coatName, befLV, befExp, costItemCnt, aftLV, aftExp):
    return
    ## 写时装升级记录
    coatLV = coat_lv()
    coatLV.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    coatLV.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    coatLV.chr_name = curPlayer.GetPlayerName()
    coatLV.coat_name = coatName
    coatLV.bef_lv = befLV
    coatLV.bef_exp = befExp
    coatLV.cost_item_cnt = costItemCnt
    coatLV.aft_lv = aftLV
    coatLV.aft_exp = aftExp
    WriteEvent(coatLV)
    return
    #===========================================================================
    # coatLV = coat_lv()
    # coatLV.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    # coatLV.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    # coatLV.chr_name = curPlayer.GetPlayerName()
    # coatLV.coat_name = coatName
    # coatLV.bef_lv = befLV
    # coatLV.bef_exp = befExp
    # coatLV.cost_item_cnt = costItemCnt
    # coatLV.aft_lv = aftLV
    # coatLV.aft_exp = aftExp
    # WriteEvent(coatLV)
    #===========================================================================
class wingskin_lv(ScribeEvent):
@@ -1630,17 +1670,19 @@
    
def WriteEvent_wingskin_lv(curPlayer, skinName, befLV, befExp, costItemCnt, aftLV, aftExp):
    ## 写幻化翅膀升级记录
    wingskinLV = wingskin_lv()
    wingskinLV.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    wingskinLV.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    wingskinLV.chr_name = curPlayer.GetPlayerName()
    wingskinLV.skin_name = skinName
    wingskinLV.bef_lv = befLV
    wingskinLV.bef_exp = befExp
    wingskinLV.cost_item_cnt = costItemCnt
    wingskinLV.aft_lv = aftLV
    wingskinLV.aft_exp = aftExp
    WriteEvent(wingskinLV)
    #===========================================================================
    # wingskinLV = wingskin_lv()
    # wingskinLV.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    # wingskinLV.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    # wingskinLV.chr_name = curPlayer.GetPlayerName()
    # wingskinLV.skin_name = skinName
    # wingskinLV.bef_lv = befLV
    # wingskinLV.bef_exp = befExp
    # wingskinLV.cost_item_cnt = costItemCnt
    # wingskinLV.aft_lv = aftLV
    # wingskinLV.aft_exp = aftExp
    # WriteEvent(wingskinLV)
    #===========================================================================
    return
@@ -1675,17 +1717,19 @@
    
def WriteEvent_horseskin_lv(curPlayer, skinName, befLV, befExp, costItemCnt, aftLV, aftExp):
    ## 写幻化坐骑升级记录
    horseSkinLV = horseskin_lv()
    horseSkinLV.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    horseSkinLV.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    horseSkinLV.chr_name = curPlayer.GetPlayerName()
    horseSkinLV.skin_name = skinName
    horseSkinLV.bef_lv = befLV
    horseSkinLV.bef_exp = befExp
    horseSkinLV.cost_item_cnt = costItemCnt
    horseSkinLV.aft_lv = aftLV
    horseSkinLV.aft_exp = aftExp
    WriteEvent(horseSkinLV)
    #===========================================================================
    # horseSkinLV = horseskin_lv()
    # horseSkinLV.SetEventAgentInfo(GameWorld.GetPlayerPlatform(curPlayer.GetAccID()))
    # horseSkinLV.account_id = GameWorld.GetPlatformAccID(curPlayer.GetAccID())
    # horseSkinLV.chr_name = curPlayer.GetPlayerName()
    # horseSkinLV.skin_name = skinName
    # horseSkinLV.bef_lv = befLV
    # horseSkinLV.bef_exp = befExp
    # horseSkinLV.cost_item_cnt = costItemCnt
    # horseSkinLV.aft_lv = aftLV
    # horseSkinLV.aft_exp = aftExp
    # WriteEvent(horseSkinLV)
    #===========================================================================
    return
## ---------------------------------------------------------------------------------------