Ejemplo n.º 1
0
 /// <summary>
 /// 失败输出
 /// </summary>
 /// <param name="msg">消息</param>
 private void writeMsgError(int code, string msg)
 {
     HttpContext.Current.Response.ContentType = "application/json";
     HttpContext.Current.Response.Write(YBDConvertToJson.error(code, msg));
     HttpContext.Current.ApplicationInstance.CompleteRequest();
     HttpContext.Current.Response.End();
 }