You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
405 lines
7.7 KiB
405 lines
7.7 KiB
|
|
|
|
import os
|
|
import shutil
|
|
import re
|
|
import sys
|
|
import json
|
|
from enum import Enum, IntEnum
|
|
#bill日志类型
|
|
class BillType(IntEnum):
|
|
Login = 1000,
|
|
# 登出
|
|
Logout = 1001,
|
|
|
|
# googlepay,请求账单
|
|
PayGoogleReq = 1002,
|
|
PayGoogleRes = 1003,
|
|
# 请求加钻石
|
|
PayGoogleSuccessReq = 1004,
|
|
PayGoogleSuccessRes = 1005,
|
|
#钻石换筹码
|
|
DiamondChipExchange = 1006,
|
|
# 领取免费礼包
|
|
PayFreeGiftPack = 1007,
|
|
|
|
#钻石改变
|
|
ChangeDiamond = 1010,
|
|
ChangeChip = 1011,
|
|
ChangeItem = 1012,
|
|
|
|
#ping
|
|
PingInfo = 1020,
|
|
|
|
#举报
|
|
TipOffPlayer = 1021,
|
|
#禁言
|
|
GagChat = 1022,
|
|
#隐藏个人信息
|
|
HideMyInfo = 1023,
|
|
|
|
#mail
|
|
MailOpBegin = 1030,
|
|
MailOpRet = 1031,
|
|
MailSendToPlayer = 1032,#发邮件给玩家
|
|
|
|
#exchange
|
|
ExchangeCouponDbReq = 1040,
|
|
ExchangeCouponDbRes = 1041,
|
|
ExchangeCouponDiamond = 1042,#直接换成钻石
|
|
|
|
#新手引导
|
|
FinishNewbieReq = 1050,
|
|
#完成新手引导的某一步
|
|
FinishNewbieStep = 1051,
|
|
|
|
#客户端上报Bill
|
|
CliReportBill = 1055,
|
|
|
|
#断线重连
|
|
AgainConnect = 1060,
|
|
|
|
#分享记录
|
|
ShareFacebook = 1070,
|
|
InviteFacebook = 1072,
|
|
InviteMeUidBindSuccess = 1073, #绑定邀请我的uid成功
|
|
ShareDeeplink = 1074, #发送深度链接分享
|
|
|
|
#副本记录
|
|
FinishMainland = 1080,
|
|
|
|
FriendGift = 1089, # 好友礼物
|
|
FocusFacebook = 1090,
|
|
FriendList = 1091, #好友列表数量
|
|
|
|
ActivityPoint = 1092, # 积分活动
|
|
|
|
|
|
|
|
FreezePlayer = 1122,
|
|
CheatPlayer = 1123, #作弊
|
|
|
|
AddLevel = 1124, # 升级
|
|
DrawLoopGroupId = 1217,
|
|
DoRateStar = 1130, #玩家评价
|
|
|
|
LinkReward = 1135, # 链接奖励
|
|
|
|
VipExp = 1136, # vip 经验
|
|
|
|
BuyVipCard = 1138, #花钻石买vip卡
|
|
VipCardNotLoginPush = 1139, #vip会员未登录推送
|
|
|
|
WebFirebasePush = 1140, # web推送
|
|
WebSysNoticeLamp = 1141, # web走马灯
|
|
|
|
RetentionOptimizetion = 1142, # 留存优化
|
|
ArtifactOp = 1150, #神器操作
|
|
ChatData = 1160, #聊天数据
|
|
DungeonOp = 1170, #地牢操作
|
|
CampaignOp = 1180, #战役操作
|
|
UnionOp = 1190, #公会操作
|
|
UnionCommonLog = 1191, #公会常规记录
|
|
UnionDailyStatistics = 1192, #公会每日统计
|
|
|
|
DispatchOp = 1200, #派遣任务op
|
|
|
|
AddPassCardPoint = 1210, #添加通行证点数
|
|
|
|
GetActivityPointReward = 1211, # 领取积分奖励
|
|
HeroOp = 1212,
|
|
EquipmentOp = 1213,
|
|
heroChg = 1214,
|
|
|
|
#sendMsgToPlayer
|
|
SendMsgToPlayer = 2001, #服务发给客户端消息(某些特殊消息需要记录bill日志,方便查问题)
|
|
|
|
#Online Player
|
|
OnlinePlayer = 3001,
|
|
|
|
PlayerPhoneInfo = 4001, #玩家安装游戏时返回的数据
|
|
|
|
LinkClickCount = 5001 #玩家分享的链接被点击次数,http深度链接,operationserver上报
|
|
|
|
#bill日志类型头
|
|
BillHead = {
|
|
"Login" : [
|
|
"accountType",
|
|
"accountID",
|
|
"uid",
|
|
"loginCount",
|
|
"onlineTime",
|
|
"level",
|
|
"chip",
|
|
"diamond",
|
|
"apkVersion",
|
|
"appVersion",
|
|
"nick",
|
|
"deviceId",
|
|
"paycount",
|
|
"ip",
|
|
"reonline",
|
|
"deveceInfo",
|
|
"email",
|
|
"lang",
|
|
"viplevel",
|
|
"oslang",
|
|
"adid",
|
|
"platform",
|
|
"os",
|
|
"channel",
|
|
"realm",
|
|
],
|
|
|
|
"Logout":[
|
|
"accountType",
|
|
"accountID",
|
|
"uid",
|
|
"loginCount",
|
|
"onlineTime",
|
|
"level",
|
|
"chip",
|
|
"diamond",
|
|
"deviceId",
|
|
"adid",
|
|
"realm",
|
|
],
|
|
"PayGoogleReq":[
|
|
"uid",
|
|
"itemid",
|
|
"diamond",
|
|
"money",
|
|
],
|
|
"PayGoogleRes":[
|
|
"uid",
|
|
"itemid",
|
|
"diamond",
|
|
"money",
|
|
"orderid",
|
|
"ret",
|
|
],
|
|
"PayGoogleSuccessReq":[
|
|
"uid",
|
|
"orderid",
|
|
"purchasedata",
|
|
"signature",
|
|
"payType",
|
|
"orderid3rd",
|
|
],
|
|
|
|
"PayGoogleSuccessRes":[
|
|
"uid",
|
|
"itemid",
|
|
"diamond",
|
|
"money",
|
|
"orderid",
|
|
"ret",
|
|
"orderid3rd",
|
|
"diamondGift",
|
|
"firstPayUser",
|
|
"nick",
|
|
"payType",
|
|
"addChip",
|
|
"payStatus",
|
|
"amount",
|
|
"currency",
|
|
],
|
|
"PayFreeGiftPack":[
|
|
"uid",
|
|
"itemid",
|
|
"payCountToday",
|
|
"payCountWeek",
|
|
"payCountMonth",
|
|
"paySuccCount",
|
|
"lastUpdateRecordTime",
|
|
],
|
|
"ChangeDiamond":[
|
|
"uid",
|
|
"old",
|
|
"new",
|
|
"change",
|
|
"reason",
|
|
"param1",
|
|
],
|
|
"ChangeChip":[
|
|
"uid",
|
|
"old",
|
|
"new",
|
|
"change",
|
|
"reason",
|
|
"param1",
|
|
],
|
|
"ChangeItem":[
|
|
"uid",
|
|
"itemid",
|
|
"uniqueID",
|
|
"old",
|
|
"new",
|
|
"change",
|
|
"reason",
|
|
"param1",
|
|
],
|
|
"PingInfo":[
|
|
"uid",
|
|
"minPing",
|
|
"maxPing",
|
|
"avgPing",
|
|
],
|
|
"AgainConnect":[
|
|
"uid",
|
|
],
|
|
"FriendGift":[
|
|
"selfUid",
|
|
"opType",
|
|
"friendUid",
|
|
"todaySend",
|
|
"todayRecv",
|
|
"autoOp",
|
|
],
|
|
"InviteFacebook":[
|
|
"uid",
|
|
"Count",
|
|
],
|
|
"CliReportBill":[
|
|
"uid",
|
|
"type",
|
|
"message",
|
|
],
|
|
"HideMyInfo":[
|
|
"uid",
|
|
"hide",
|
|
],
|
|
"FreezePlayer":[
|
|
"uid",
|
|
"hour",
|
|
],
|
|
"AddLevel":[
|
|
"uid",
|
|
"levelType",
|
|
"level",
|
|
],
|
|
"VipExp":[
|
|
"uid",
|
|
"vipExp",
|
|
],
|
|
"MailSendToPlayer":[
|
|
"uid",
|
|
"targetUid",
|
|
"vipLevel",
|
|
"chip",
|
|
"tax",
|
|
],
|
|
"FinishMainland":[
|
|
"uid",
|
|
"level",
|
|
"mainlandId",
|
|
"mainlandType",
|
|
"combatType",
|
|
"isWin",
|
|
"useTime",
|
|
"auto",
|
|
"defenceUid",
|
|
],
|
|
"ArtifactOp":[
|
|
"uid",
|
|
"serialNum",
|
|
"descId",
|
|
"opType",
|
|
],
|
|
"DungeonOp":[
|
|
"uid",
|
|
"DungeonLayer",
|
|
"TodayLayer",
|
|
"Diffculty",
|
|
"TodayMainline",
|
|
"deathCount",
|
|
"EmployeeCount",
|
|
"isEnter",
|
|
"isComplete",
|
|
"AddnewRandomRoom",
|
|
"DungeonRewardAddRate",
|
|
"TodayTaskGroup",
|
|
"taskStat",
|
|
],
|
|
"CampaignOp":[
|
|
"uid",
|
|
"CampaignLayer",
|
|
"isEnter",
|
|
"isReset",
|
|
"isComplete",
|
|
"deathCount",
|
|
"hadFinishedDrops",
|
|
"hadFinishedTreasures",
|
|
"GridsCount",
|
|
"eventID",
|
|
"TaskFinishRound",
|
|
],
|
|
"DispatchOp":[
|
|
"uid",
|
|
"opType",
|
|
"taskId",
|
|
],
|
|
"ActivityPoint":[
|
|
"uid",
|
|
"id",
|
|
"currPoint",
|
|
"itemStatus",
|
|
],
|
|
"AddPassCardPoint":[
|
|
"uid",
|
|
"cardType",
|
|
"cardLevel",
|
|
"old",
|
|
"new",
|
|
"add",
|
|
],
|
|
"GetActivityPointReward":[
|
|
"activity_type",
|
|
"activity_id",
|
|
"reward_point",
|
|
"reward_id",
|
|
],
|
|
"HeroOp":[
|
|
"uid",
|
|
"SerialNum",
|
|
"DescId",
|
|
"heroItem",
|
|
"opType",
|
|
"oldValue",
|
|
"NewValue",
|
|
],
|
|
"heroChg":[
|
|
"uid",
|
|
"SerialNum",
|
|
"DescId",
|
|
"HeroDescCount",
|
|
"opType",
|
|
"strAttr",
|
|
"reasonID",
|
|
"reasonInfo",
|
|
],
|
|
"MailOpBegin":[
|
|
"opUid",
|
|
"opType",
|
|
"mailID",
|
|
"mailType",
|
|
"ownerUid",
|
|
"senderUid",
|
|
"senderTime",
|
|
"insertUniqueID",
|
|
"getItemTime",
|
|
"deleteTime",
|
|
"title",
|
|
"content",
|
|
"chip",
|
|
"diamond",
|
|
"param1",
|
|
"param2",
|
|
"param3",
|
|
"param4",
|
|
"param5",
|
|
]
|
|
}
|
|
|
|
BillComHead = ["logtime", "timeStamp", "Type"]
|
|
|
|
|