Ejemplo n.º 1
0
        private string updateDebugInfoState(HttpContext context)
        {
            Json   jsonResult = new Json();
            string id         = context.Request["id"];
            int    result     = ms.updateDebugInfoState(id);

            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);
        }