Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 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());
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// 返回json
 /// </summary>
 /// <returns></returns>
 public string NmJson()
 {
     return(WriteContext.ToString());
 }