def mine_box(player_data): log4tx.mine_box(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id)
def online_num(num): log4tx.online_num(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, Num=num)
def exit_guild(player_data, guild_id): log4tx.exit_guild(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id, GuildId=guild_id)
def shop_buy1(player_data, shop_id): log4tx.shop_buy1(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id, ShopID=shop_id)
def hero_sacrifice(player_data, hero_id): log4tx.hero_sacrifice(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id, HeroId=hero_id)
def player_logout(player_data): online_time = int(time.time())-player_data.base_info.login_time log4tx.player_logout(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, PlatID=plat_id, Level=player_data.base_info.level, OpenID=player_data.base_info.id, OnlineTime=online_time)
def unpar_upgrade(player_data, level): log4tx.unpar_upgrade(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id, Level=level)
def item_flow(player_data, addorreduce, itemtype, itemnum, itemid, itid, reason, after_num, event_id): log4tx.item_flow(PlatID=plat_id, GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, ItemID=itemid, ItemType=itemtype, AfterCount=after_num, Count=itemnum, AddOrReduce=addorreduce, Reason=reason, Itid=itid, ReasonEventID=event_id)
def refresh_escort_tasks(player_data, times): log4tx.refresh_escort_tasks(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id, Times=times)
def overcome_reset(player_data, reset_times): log4tx.overcome_reset(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id, ResetTimes=reset_times)
def overcome_award(player_data, index): log4tx.overcome_award(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id, Index=index)
def up_guide(player_data, id): log4tx.up_guide(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id, ID=id)
def world_boss_in_reward(player_id, mail_id): log4tx.world_boss_in_reward(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_id, PlatID=plat_id, MailID=mail_id)
def receive_escort_task(player_data, task_id): log4tx.receive_escort_task(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id, TaskID=task_id)
def rob_treasure_truce(player_data, num, num_day): log4tx.rob_treasure_truce(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id, Num=num, NumDay=num_day)
def compose_treasure(player_data, equ_no, equ_id): log4tx.compose_treasure(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id, EquNo=equ_no, EquID=equ_id)
def guild_kick(player_data, guild_id, target_id): log4tx.guild_kick(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id, GuildId=guild_id, TargetId=target_id)
def mine_accelerate(player_data, gold_num): log4tx.mine_accelerate(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id, GoldNum=gold_num)
def start_target_get_gift(player_data, target_id): log4tx.start_target_get_gift(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id, TargetID=target_id)
def mine_help(player_data, guild_id, be_help_ids): log4tx.mine_help(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id, GuildID=guild_id, BeHelpIds=be_help_ids)
def feast(player_data, stamina): log4tx.feast(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id, Stamina=stamina)
def login_gift(player_data, activity_id): log4tx.login_gift(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id, ActivityID=activity_id)
def online_gift(player_data, gift_id): log4tx.online_gift(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id, GiftID=gift_id)
def guild_promotion(player_data, guild_id, be_id): log4tx.guild_promotion(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id, GuildId=guild_id, BeId=be_id)
def world_boss_encourage(player_data, type, times): log4tx.world_boss_encourage(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id, Type=type, Times=times)
def create_nickname(player_data, nickname): log4tx.create_nickname(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id, Nickname=nickname)
def mine_acc(player_data, last_time): log4tx.mine_acc(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id, LastTime=last_time)
def auto_travel(player_data, stage, time): log4tx.auto_travel(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id, Stage=stage, Time=time)
def trigger_boss(player_data, guild_id, boss_type): log4tx.trigger_boss(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id, GuildID=guild_id, BossType=boss_type)
def draw_rebate(player_data, rid): log4tx.draw_rebate(GameSvrId=game_server_id, dtEventTime=xtime.strdatetime(), GameAppID=game_app_id, OpenID=player_data.base_info.id, PlatID=plat_id, RebateID=rid)