/// <summary> /// 网页访问日志 /// </summary> /// <param name="logModel"></param> public static void WebLog(WebLogModel webLogModel) { try { var logger = new LogCenter(); var logModel = new WebModel(); logModel.AccId = webLogModel.AccId; logModel.SubName = webLogModel.SubName; logModel.ActDate = webLogModel.ActDate; logModel.BrowserName = webLogModel.BrowserName; logModel.BrowserVer = webLogModel.BrowserVer; logModel.FromIp = webLogModel.FromIp; logModel.FromUrl = webLogModel.FromUrl; logModel.TargetName = webLogModel.TargetName; logModel.UserAgent = webLogModel.UserAgent; logModel.FromName = webLogModel.Message; logModel.ClientType = webLogModel.Flag; logger.WebLog(logModel); } catch (Exception) { } }