private string macDebug(HttpContext context) { Json jsonResult = new Json(); string id = context.Request["id"]; string command = context.Request["command"]; int result = ms.insertDebugInfo(id, command); if (result > 0) { jsonResult.Success = true; jsonResult.Msg = "操作成功"; } else if (result == -1) { jsonResult.Success = false; jsonResult.Msg = "发生异常"; } else { jsonResult.Success = false; jsonResult.Msg = "未知错误"; } string strJson = JsonConvert.SerializeObject(jsonResult); return(strJson); }