public string DelMenu_post(HttpContext context) { int pi = 0; int si = -1; string mi = context.Request["mi"]; if (mi.Contains("-")) { string[] arr = mi.Split('-'); pi = int.Parse(arr[0]) - 1; si = int.Parse(arr[1]) - 1; } else { pi = int.Parse(mi) - 1; } WeixinHelper.DelMenu(pi, si); return("{result:true,message:'删除成功'}"); }