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.
223 lines
10 KiB
223 lines
10 KiB
1 month ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Threading.Tasks;
|
||
|
|
||
|
using System.IO;
|
||
|
using System.Text;
|
||
|
|
||
|
using Sog;
|
||
|
|
||
|
namespace bill_statistics
|
||
|
{
|
||
|
public static partial class LogWrapper
|
||
|
{
|
||
|
|
||
|
public static void PrintChipDiamondInfo()
|
||
|
{
|
||
|
FileStream fsFile = new FileStream("./bill_out_chipDiamondInfo.txt", FileMode.Create);
|
||
|
|
||
|
|
||
|
StreamWriter fileWriter = new StreamWriter(fsFile, Encoding.UTF8);
|
||
|
string strMessage = "日期\t金币总产出\t金币总消耗\t金币流转\t领取邮件\t邮件-系统邮件\t邮件-好友礼物\t邮件-更新补偿\t邮件-首次FB登录\t邮件-链接奖励\t"
|
||
|
+ "每日邀请\t破产补助\t每日签到(包括累计)\t在线奖励\t支付\t活动奖励\t活动-关注facebook\t活动-每日邀请\t活动-每日分享\t每日礼品码奖励\t任务奖励\t成就奖励\t升级奖励\tgm添加\t新手引导奖励\t邀请成功奖励\t定时抽奖"
|
||
|
+ "\t机器人产出\t机器人消耗\t邮件赠送\t邮件赠送手续费\t台费\t"
|
||
|
+ "新手总产出\t新手总消耗\t新手领邮件\t新手邀请好友\t新手在线奖励\t新手每日签到\t新手破产补助";
|
||
|
|
||
|
fileWriter.WriteLine(strMessage);
|
||
|
|
||
|
foreach (KeyValuePair<DateTime, BillInfoEveryDay> pair in BillAlldays.Instance.m_billAllDays)
|
||
|
{
|
||
|
DateTime dateTime = pair.Key;
|
||
|
BillInfoEveryDay info = pair.Value;
|
||
|
|
||
|
long getChipMail = info.GetChipByReason("GetItemMail");
|
||
|
long getChipMailSystem = info.GeMailtChipByType(0);
|
||
|
long getChipMailFriendGift = info.GeMailtChipByType(1);
|
||
|
long getChipMailVersionUpdateCompensate = info.GeMailtChipByType(2);
|
||
|
long getChipMailFirstFBLogin = info.GeMailtChipByType(3);
|
||
|
long getChipMailMatchReward = info.GeMailtChipByType(4);
|
||
|
long getChipMailLuckDraw = info.GeMailtChipByType(5);
|
||
|
long getChipMailMatchCancelRefund = info.GeMailtChipByType(6);
|
||
|
long getChipMailMatchFeeRefund = info.GeMailtChipByType(7);
|
||
|
long getChipMailRank = info.GeMailtChipByType(10);
|
||
|
long getChipMailTreasure = info.GeMailtChipByType(11);
|
||
|
long getChipMailSendPlayer = info.GeMailtChipByType(13);
|
||
|
long getChipMailLinkReward = info.GeMailtChipByType(15);
|
||
|
|
||
|
long getChipInviteSns = info.GetChipByReason("InviteSnsFriendAward"); //邀请sns好友
|
||
|
long getChipBroken = info.GetChipByReason("GetBrokeGrants"); // 破产
|
||
|
long getChipSign = info.GetChipByReason("GetSignReward");
|
||
|
long getChipOnline = info.GetChipByReason("GetOnlineReward");
|
||
|
long getChipDiamond = info.GetChipByReason("DiamondChipExchange");
|
||
|
long guessCardWin = info.GetChipByReason("GuessCardAward");
|
||
|
long getChipActivity = info.GetChipByReason("GetActivityReward");
|
||
|
long getChipShareFB = info.GetChipByReason("ShareFB");
|
||
|
long getChipFriendRank = info.GetChipByReason("GetFriendRankAward");
|
||
|
long getChipPay = info.GetChipByReason("Pay");
|
||
|
long getChipMonthVipDailyReward = info.GetChipByReason("MonthVipDailyReward");
|
||
|
long getChipTask = info.GetChipByReason("TaskReward");
|
||
|
long getChipLinkReward = info.GetChipByReason("LinkReward");
|
||
|
long getChipAchievementAward = info.GetChipByReason("AchievementAward"); // 成就奖励
|
||
|
long getNewbieGuideAward = info.GetChipByReason("FinishNewbieGuide"); // 新手引导
|
||
|
long getGmcmdAward = info.GetChipByReason("GmCmd");
|
||
|
long getChipLevel = info.GetChipByReason("LevelAward");
|
||
|
long getInviteSuccessInviteeReward = info.GetChipByReason("InviteSuccessInviteeReward");
|
||
|
long getTimingDraw = info.GetChipByReason("TimingDraw");
|
||
|
|
||
|
long getChipActivity1 = info.GetChipByActivityId(1); // 关注facebook
|
||
|
long getChipActivity3 = info.GetChipByActivityId(3); // 每日邀请
|
||
|
long getChipActivity4 = info.GetChipByActivityId(4); // 每日分享
|
||
|
|
||
|
//long getChipActivity3 = info.GetChipByActivityId(3);
|
||
|
|
||
|
long getDiamondPay = info.GetDiamondByReason("Pay");
|
||
|
long getDiamondMail = info.GetDiamondByReason("GetItemMail");
|
||
|
long getDiamondMailSystem = info.GeMailtDiamondByType(0);
|
||
|
long getDiamondMailMatch = info.GeMailtDiamondByType(4);
|
||
|
long getDiamondMailLuckDraw = info.GeMailtDiamondByType(5);
|
||
|
long getDiamondMailFirstPayAddDiamond = info.GeMailtDiamondByType(12);
|
||
|
|
||
|
|
||
|
long getDiamondGm = info.GetDiamondByReason("GmCmd");
|
||
|
long getDiamondSign = info.GetDiamondByReason("GetSignReward");
|
||
|
long getDiamondActDraw = info.GetDiamondByReason("ActivityDrawReward");
|
||
|
|
||
|
|
||
|
strMessage = string.Format("{0}/{1}/{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\t{9}\t{10}"+
|
||
|
"\t{11}\t{12}\t{13}\t{14}\t{15}\t{16}\t{17}\t{18}\t{19}\t{20}\t"+
|
||
|
"{21}\t{22}\t{23}\t{24}\t{25}\t{26}\t{27}\t{28}\t{29}\t{30}\t"+
|
||
|
"{31}\t{32}\t{33}\t{34}\t{35}\t{36}\t{37}\t{38}\t{39}\t{40}",
|
||
|
dateTime.Year, dateTime.Month, dateTime.Day
|
||
|
, info.ChipGet
|
||
|
, info.ChipConsume
|
||
|
, info.ChipTrans
|
||
|
, getChipMail
|
||
|
, getChipMailSystem
|
||
|
, getChipMailFriendGift
|
||
|
, getChipMailVersionUpdateCompensate
|
||
|
, getChipMailFirstFBLogin
|
||
|
, getChipMailLinkReward
|
||
|
|
||
|
//, getChipMonthVipDailyReward
|
||
|
, getChipInviteSns
|
||
|
, getChipBroken
|
||
|
, getChipSign
|
||
|
, getChipOnline
|
||
|
|
||
|
, getChipPay
|
||
|
|
||
|
, getChipActivity
|
||
|
, getChipActivity1
|
||
|
, getChipActivity3
|
||
|
, getChipActivity4
|
||
|
, getChipLinkReward // 活动每日礼品
|
||
|
, getChipTask
|
||
|
|
||
|
, getChipAchievementAward
|
||
|
, getChipLevel
|
||
|
, getGmcmdAward
|
||
|
, getNewbieGuideAward
|
||
|
, getInviteSuccessInviteeReward
|
||
|
, getTimingDraw
|
||
|
|
||
|
, info.PlayerWinRobot
|
||
|
|
||
|
//消耗
|
||
|
, info.RobotWinPlayer
|
||
|
|
||
|
, info.ChipSendPlayerMail
|
||
|
, info.ChipSendPlayerMailTax
|
||
|
|
||
|
, 0
|
||
|
|
||
|
, info.newUserChipGet
|
||
|
, info.newUserChipConsume
|
||
|
, info.GetNewUserChipByReason("GetItemMail")
|
||
|
, info.GetNewUserChipByReason("InviteSnsFriendAward")
|
||
|
, info.GetNewUserChipByReason("GetOnlineReward")
|
||
|
, info.GetNewUserChipByReason("GetSignReward")
|
||
|
, info.GetNewUserChipByReason("GetBrokeGrants")
|
||
|
//, info.GetNewUserChipByReason("GuessCardAward")
|
||
|
//, info.newUserGuessCardBet
|
||
|
);
|
||
|
|
||
|
|
||
|
fileWriter.WriteLine(strMessage);
|
||
|
}
|
||
|
|
||
|
fileWriter.Dispose();
|
||
|
fsFile.Dispose();
|
||
|
}
|
||
|
|
||
|
public static void PrintChipDiamondRangeInfo()
|
||
|
{
|
||
|
FileStream fsFile = new FileStream("./bill_out_chipDiamondRangeInfo.txt", FileMode.Create);
|
||
|
|
||
|
StreamWriter fileWriter = new StreamWriter(fsFile, Encoding.UTF8);
|
||
|
string strMessage = "日期\t活跃玩家数量\t活跃玩家总筹码\t筹码区间0-10k\t10-100k\t100k-1M\t1M-10M\t10M-100M\t100M以上";
|
||
|
|
||
|
fileWriter.WriteLine(strMessage);
|
||
|
|
||
|
foreach (KeyValuePair<DateTime, BillInfoEveryDay> pair in BillAlldays.Instance.m_billAllDays)
|
||
|
{
|
||
|
DateTime dateTime = pair.Key;
|
||
|
BillInfoEveryDay info = pair.Value;
|
||
|
|
||
|
strMessage = string.Format("{0}/{1}/{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\t{9}\t{10}",
|
||
|
dateTime.Year, dateTime.Month, dateTime.Day
|
||
|
, info.ActiveUser
|
||
|
, info.GetUserTotalChip()
|
||
|
, info.GetChipRangeUserCount(0, 10000)
|
||
|
, info.GetChipRangeUserCount(10000, 100000)
|
||
|
, info.GetChipRangeUserCount(100000, 1000000)
|
||
|
, info.GetChipRangeUserCount(1000000, 10000000)
|
||
|
, info.GetChipRangeUserCount(10000000, 100000000)
|
||
|
, info.GetChipRangeUserCount(100000000, 100000000000)
|
||
|
);
|
||
|
|
||
|
|
||
|
fileWriter.WriteLine(strMessage);
|
||
|
}
|
||
|
|
||
|
fileWriter.Dispose();
|
||
|
fsFile.Dispose();
|
||
|
}
|
||
|
|
||
|
public static void PrintDiamondChipExchangeInfo()
|
||
|
{
|
||
|
FileStream fsFile = new FileStream("./bill_out_DiamondChipExchange.txt", FileMode.Create);
|
||
|
|
||
|
StreamWriter fileWriter = new StreamWriter(fsFile, Encoding.UTF8);
|
||
|
string strMessage = "日期\t";
|
||
|
|
||
|
//foreach(var desc in DiamondChipExchangeDescMgr.Instance.ItemTable.Values)
|
||
|
//{
|
||
|
// strMessage += desc.ID + "\t";
|
||
|
//}
|
||
|
|
||
|
fileWriter.WriteLine(strMessage);
|
||
|
|
||
|
foreach (KeyValuePair<DateTime, BillInfoEveryDay> pair in BillAlldays.Instance.m_billAllDays)
|
||
|
{
|
||
|
DateTime dateTime = pair.Key;
|
||
|
BillInfoEveryDay info = pair.Value;
|
||
|
|
||
|
strMessage = string.Format("{0}/{1}/{2}\t",
|
||
|
dateTime.Year, dateTime.Month, dateTime.Day
|
||
|
);
|
||
|
//foreach (var desc in DiamondChipExchangeDescMgr.Instance.ItemTable.Values)
|
||
|
//{
|
||
|
// strMessage += info.m_DiamondChipExchangeTable[desc.ID]+"\t";
|
||
|
//}
|
||
|
|
||
|
fileWriter.WriteLine(strMessage);
|
||
|
}
|
||
|
|
||
|
fileWriter.Dispose();
|
||
|
fsFile.Dispose();
|
||
|
}
|
||
|
|
||
|
}
|
||
|
}
|