public bool PostGuestBook(string message, string userIp, string email) { try { string title = "异常" + DateTime.Now.ToString("yyyyMMddhhmmss"); var log = new OperatorLog(); log.contact = email; log.message = message; log.title = title; log.type = "Exception"; log.userip = userIp; var apiHelper = new ApiHelper(); var result = apiHelper.AddExceptionLog(log); if (!string.IsNullOrEmpty(result)) { return(true); } return(false); } catch (Exception ex) { LogHelper.WriteException(ex); return(false); } }