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); } } }