public void request(string par_url) { if (string.IsNullOrEmpty(wc.ToString())) { WriteNone(); } IRequest r = new Request(); returnJson = r.request(par_url, wc.ToString()); rc = new ReadWriteContext.ReadContextByJson(returnJson); }
protected void WriteException(HttpContext context, Exception e) { if (e.GetType() == typeof(ExceptionBase)) { ExceptionBase e1 = (ExceptionBase)e; WriteContext.Append("errId", e1.errId.ToString()); WriteContext.Append("errMsg", e.Message); Write(context, WriteContext.ToString()); } else { WriteContext.Append("errId", "-1"); WriteContext.Append("errMsg", e.Message); Write(context, WriteContext.ToString()); } }
/// <summary> /// 返回json /// </summary> /// <returns></returns> public string NmJson() { return(WriteContext.ToString()); }