public void ProcessRequest(System.Web.HttpContext context) { context.Response.ContentType = "text/plain"; GzipExtention.Gzip(context); string text = context.Request.Form["action"]; string a; if ((a = text) != null) { if (!(a == "OrderAdd")) { return; } this.ProcessOrderAdd(context); } }
public void ProcessRequest(System.Web.HttpContext context) { context.Response.ContentType = "text/plain"; GzipExtention.Gzip(context); string text = context.Request.Form["action"]; string key; switch (key = text) { case "ProductSearch": this.ProcessProductSearch(context); return; case "ProductDetails": this.ProcessProductDetails(context); return; case "TaobaoProductMake": this.ProcessTaobaoProductMake(context); return; case "TaobaoProductDetails": this.ProcessTaobaoProductDetails(context); return; case "TaobaoProductIdAdd": this.ProcessTaobaoProductIdAdd(context); return; case "TaobaoProductIsExit": this.ProcessTaobaoProductIsExit(context); return; case "TaobaoProductDown": this.ProcessTaobaoProductDown(context); return; } context.Response.Write("error"); }