/// <summary> /// 返回失败JSON字符串 /// </summary> /// <param name="FailNotice"></param> /// <returns></returns> public static string FailString(string FailNotice) { JsonHelper json = new JsonHelper(); json.totlal = 0; json.success = false; FailNotice = Regex.Replace(FailNotice, @"\r\n", " "); json.AddItem("info", NoticeEnum.GetEnumDesc(NoticeEnum.NOTICE.FAILSURE) + ",可能原因为:" + FailNotice.Replace("/", "").Replace("\"", "'")); json.ItemOk(); return(json.ToString()); }
/// <summary> /// 返回执行成功JSON字符串 /// </summary> /// <returns></returns> public static string SuccessString() { return(SuccessString(NoticeEnum.GetEnumDesc(NoticeEnum.NOTICE.SUCCESS))); }