/// <summary>
 /// 日志写入方法
 /// </summary>
 /// <param name="str"></param>
 public void SaveLogs(string username, string str)
 {
     if (webset.WebLogStatus == 0)
     {
         return;
     }
     Cms.BLL.SystemLog   bll   = new Cms.BLL.SystemLog();
     Cms.Model.SystemLog model = new Cms.Model.SystemLog();
     model.UserName = username;
     model.Title    = str;
     if (HttpContext.Current.Request.UserHostAddress != null)
     {
         model.IPAddress = HttpContext.Current.Request.UserHostAddress;
     }
     model.AddTime = DateTime.Now;
     bll.Add(model);
 }
 /// <summary>
 /// 日志写入方法
 /// </summary>
 /// <param name="str"></param>
 protected void SaveLogs(string str)
 {
     if (webset.WebLogStatus == 0)
     {
         return;
     }
     Cms.BLL.SystemLog   bll   = new Cms.BLL.SystemLog();
     Cms.Model.SystemLog model = new Cms.Model.SystemLog();
     if (Session["AdminName"] != null)
     {
         model.UserName = Session["AdminName"].ToString();
     }
     if (HttpContext.Current.Request.UserHostAddress != null)
     {
         model.IPAddress = HttpContext.Current.Request.UserHostAddress;
     }
     model.Title   = str;
     model.AddTime = DateTime.Now;
     bll.Add(model);
 }