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.
29 lines
968 B
29 lines
968 B
using Sog;
|
|
using Sog.Log;
|
|
using ProtoCSStruct;
|
|
namespace Version
|
|
{
|
|
public class VersionBillUtils
|
|
{
|
|
public static void LogVersionCheck(ref CSVersionCheckReq req, string ip)
|
|
{
|
|
BillLogHelper blh = new BillLogHelper((int)BillLogType.VersionCheck);
|
|
blh.Append("ip", ip);
|
|
blh.Append("apkVersion", req.ApkVersion.ToString());
|
|
blh.Append("deviceId", req.DeviceId.ToString());
|
|
|
|
string logMessage = blh.ToString();
|
|
BillLogWriter.Instance.SendToBillLogSvr(0, logMessage);
|
|
}
|
|
|
|
public static void LogLoginNotice(string deviceId, string ip)
|
|
{
|
|
BillLogHelper blh = new BillLogHelper((int)BillLogType.LoginNotice);
|
|
blh.Append("ip", ip);
|
|
blh.Append("deviceId", deviceId);
|
|
|
|
string logMessage = blh.ToString();
|
|
BillLogWriter.Instance.SendToBillLogSvr(0, logMessage);
|
|
}
|
|
}
|
|
}
|