Commit 5a88f29e authored by 黄奎's avatar 黄奎

页面修改

parent 4359cafe
......@@ -125,7 +125,19 @@ namespace Edu.Module.Question
/// <returns></returns>
public List<RB_Question_ViewModel> GetQuestionPageListModule(int pageIndex, int pageSize, out long rowsCount, RB_Question_ViewModel query)
{
return questionRepository.GetQuestionPageListRepository(pageIndex, pageSize, out rowsCount, query);
var list = questionRepository.GetQuestionPageListRepository(pageIndex, pageSize, out rowsCount, query);
if (list != null && list.Count > 0)
{
foreach (var item in list)
{
if (item.QuestionTypeKey == "reading-comprehensio" || item.QuestionTypeKey == "listening" || item.QuestionTypeKey == "cloze")
{
var obj = ParsingQuestionModule(item.QuestionTypeKey, item.QuestionContent);
item.QuestionContent = Common.Plugin.JsonHelper.Serialize(obj);
}
}
}
return list;
}
/// <summary>
......
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