protected void Page_Load(object sender, EventArgs e) { if (IsFail() == true) { if (Request.QueryString["Fail"].ToString() == "suc") { BLL.HG.Hg_list bb = new BLL.HG.Hg_list(); int number = int.Parse(Request.QueryString["kk"]); order_dd = Request.QueryString["order"]; bb.update_list(number); bb.update("已支付", order_dd); // Update_Hg("预约", number); SendTemplateMessageTest(); SendTemplateMessageTest_hg(); } else { } } if (System.Web.HttpContext.Current.Request.Cookies["open_id"] != null) { open_id = HttpContext.Current.Request.Cookies["open_id"].Value; } }
public void ProcessRequest(HttpContext context) { int number = MyCommFun.RequestInt("number"); int page = MyCommFun.RequestInt("page"); string where = MyCommFun.RequestParam("where"); string open_id = MyCommFun.RequestParam("open_idss"); string action = MyCommFun.RequestParam("action"); string mmm = "Hg_number asc"; int recordCount = 0; int ord = MyCommFun.RequestInt("orderid"); string order_123 = MyCommFun.RequestParam("order_123"); string pic_name = MyCommFun.RequestParam("pickname"); if (action == "no_order") { context.Response.ContentType = "text/json"; context.Response.Write(MyCommFun.GetJsonByDataset(No_order(open_id, where))); } else if (action == "delete_order") { Dictionary <string, string> jsonDict = new Dictionary <string, string>(); jsonDict = new Dictionary <string, string>(); BLL.HG.Hg_list order = new BLL.HG.Hg_list(); order.DeleteList(ord); jsonDict.Add("errCode", "false"); jsonDict.Add("recontent", "删除成功!"); context.Response.Write(MyCommFun.getJsonStr(jsonDict)); } else if (action == "pay_update") { Dictionary <string, string> jsonDict = new Dictionary <string, string>(); jsonDict = new Dictionary <string, string>(); BLL.HG.Hg_list order = new BLL.HG.Hg_list(); order.update("已支付", order_123); jsonDict.Add("errCode", "false"); jsonDict.Add("recontent", "更新成功!"); context.Response.Write(MyCommFun.getJsonStr(jsonDict)); } else if (action == "File") { Dictionary <string, string> jsonDict = new Dictionary <string, string>(); jsonDict = new Dictionary <string, string>(); BLL.HG.Hg_list order = new BLL.HG.Hg_list(); WriteTextLog(DateTime.Now); jsonDict.Add("errCode", "false"); jsonDict.Add("recontent", "更新成功!"); context.Response.Write(MyCommFun.getJsonStr(jsonDict)); } else { context.Response.Write(MyCommFun.GetJsonByDataset(Hgdata(8, page))); } }