Commit b6efb16d authored by 黄奎's avatar 黄奎

页面修改

parent 3af710a4
...@@ -1277,6 +1277,22 @@ namespace Edu.Module.Exam ...@@ -1277,6 +1277,22 @@ namespace Edu.Module.Exam
} }
} }
} }
//完型填空
else if (questionModel.QuestionTypeKey == "cloze")
{
var tempList = sItem.StundetAnswer.Split(',');
if (tempList != null && tempList.Count() > 0)
{
foreach (var tItem in tempList)
{
answerList.Add(tItem);
}
}
}
else if (questionModel.QuestionTypeKey == "reading-comprehensio" || questionModel.QuestionTypeKey == "listening")
{
}
var qObj = new var qObj = new
{ {
......
...@@ -571,7 +571,7 @@ namespace Edu.Module.Question ...@@ -571,7 +571,7 @@ namespace Edu.Module.Question
} }
if (matchList.Count > 2) if (matchList.Count > 2)
{ {
AnalysisAnswer = Common.Plugin.JsonHelper.Serialize(matchList[2]); AnalysisAnswer = string.Join(",", matchList[2].Select(qitem => qitem.Content));
if (matchList[2].Where(qitem => string.IsNullOrEmpty(qitem.Content)).Count() > 0) if (matchList[2].Where(qitem => string.IsNullOrEmpty(qitem.Content)).Count() > 0)
{ {
message = "请设置答案"; message = "请设置答案";
......
...@@ -552,10 +552,10 @@ namespace Edu.WebApi.Controllers.Applet ...@@ -552,10 +552,10 @@ namespace Edu.WebApi.Controllers.Applet
public ApiResult GetPaperDetails() public ApiResult GetPaperDetails()
{ {
var PaperId = base.ParmJObj.GetInt("PaperId"); var PaperId = base.ParmJObj.GetInt("PaperId");
var Id = base.ParmJObj.GetInt("Id"); var PublishId = base.ParmJObj.GetInt("PublishId");
var GuestId = base.ParmJObj.GetInt("GuestId", 0); var GuestId = base.ParmJObj.GetInt("GuestId", 0);
var isShowAnswer = base.ParmJObj.GetBoolValue("isShowAnswer"); var isShowAnswer = base.ParmJObj.GetBoolValue("isShowAnswer");
if (Id <= 0) if (PublishId <= 0)
{ {
return ApiResult.ParamIsNull(message: "请传递考试编号!"); return ApiResult.ParamIsNull(message: "请传递考试编号!");
} }
...@@ -563,7 +563,7 @@ namespace Edu.WebApi.Controllers.Applet ...@@ -563,7 +563,7 @@ namespace Edu.WebApi.Controllers.Applet
{ {
return ApiResult.ParamIsNull(message: "请传递学员编号!"); return ApiResult.ParamIsNull(message: "请传递学员编号!");
} }
var data = paperModule.AppGetExamPaperInfoModule(PaperId, isShowAnswer: isShowAnswer, GuestId: GuestId, PublishId: Id); var data = paperModule.AppGetExamPaperInfoModule(PaperId, isShowAnswer: isShowAnswer, GuestId: GuestId, PublishId: PublishId);
return ApiResult.Success(data: data); return ApiResult.Success(data: data);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment