Commit 28f73626 authored by 黄奎's avatar 黄奎

新增验证

parent 0c4f1611
...@@ -154,7 +154,14 @@ namespace Edu.Module.Question ...@@ -154,7 +154,14 @@ namespace Edu.Module.Question
break; break;
//共用选择题 //共用选择题
case "sharing-choose": case "sharing-choose":
if (!string.IsNullOrEmpty(data))
{
obj = Common.Plugin.JsonHelper.DeserializeObject<List<List<matchingItem>>>(data); obj = Common.Plugin.JsonHelper.DeserializeObject<List<List<matchingItem>>>(data);
}
else
{
obj = null;
}
break; break;
//其它题 //其它题
case "other": case "other":
......
...@@ -163,7 +163,6 @@ namespace Edu.Module.Question ...@@ -163,7 +163,6 @@ namespace Edu.Module.Question
var extModel = questionRepository.GetEntity<RB_Question_ViewModel>(QuestionId); var extModel = questionRepository.GetEntity<RB_Question_ViewModel>(QuestionId);
if (extModel != null) if (extModel != null)
{ {
extModel.QuestionContentObj = ParsingQuestionModule(extModel.QuestionTypeKey, extModel.QuestionContent); extModel.QuestionContentObj = ParsingQuestionModule(extModel.QuestionTypeKey, extModel.QuestionContent);
if (!string.IsNullOrEmpty(extModel.Knowledge)) if (!string.IsNullOrEmpty(extModel.Knowledge))
{ {
......
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