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.

68 lines
2.1 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 LogAllActiveUserSomeInfo()
{
FileStream fsFile = new FileStream("./bill_out_alluserchipdiamond.txt", FileMode.Create);
StreamWriter fileWriter = new StreamWriter(fsFile, Encoding.UTF8);
string strMessage = "日期\tuid\t金币\t钻石\t普通增强场\t普通场\t翻倍场\t比赛场\t破产次数\t付费次数\t第二天是否登录";
fileWriter.WriteLine(strMessage);
int iCount = 0;
int iTotalCount = BillAlldays.Instance.m_billAllDays.Count;
foreach (KeyValuePair<DateTime, BillInfoEveryDay> pair in BillAlldays.Instance.m_billAllDays)
{
iCount++;
//记录最后2天
if (iCount < iTotalCount - 2)
{
continue;
}
DateTime dateTime = pair.Key;
BillInfoEveryDay info = pair.Value;
foreach (var user in info.m_activeUser.Values)
{
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}",
dateTime.Year, dateTime.Month, dateTime.Day
, user.Uid
, user.chip
, user.diamond
, user.NormalRoomExRoundCount
, user.NormalRoomRoundCount
, user.RateRoomRoundCount
, user.MatchRoomRoundCount
, info.GetBrokenGrandTimes(user.Uid)
, info.GetUserPayCount(user.Uid)
, user.secondDayNotLogin ? 0 : 1
);
fileWriter.WriteLine(strMessage);
}
}
fileWriter.Dispose();
fsFile.Dispose();
}*/
}
}