/// <summary> /// 评测机获取评测列表 /// </summary> /// <returns>Json结果</returns> public ActionResult GetPending() { String count = Request["count"]; String lanaugeSupport = Request["supported_languages"]; String result = String.Empty; String error = String.Empty; if (JudgeSolutionManager.TryGetPendingListJson(lanaugeSupport, count, out result, out error)) { return(Content(result, "application/json")); } else { return(ErrorJson(error)); } }
public ActionResult UpdateStatus() { String sid = Request["sid"]; String pid = Request["pid"]; String username = Request["username"]; String resultcode = Request["resultcode"]; String detail = Request["detail"]; String timecost = Request["timecost"]; String memorycost = Request["memorycost"]; String error = String.Empty; if (JudgeSolutionManager.TryUpdateSolutionStatus(sid, pid, username, resultcode, detail, timecost, memorycost, out error)) { return(SuccessJson()); } else { return(ErrorJson(error)); } }