Commit c1c640fe authored by 黄奎's avatar 黄奎

页面修改

parent 76556294
...@@ -410,20 +410,27 @@ namespace Edu.WebApi.Controllers.Course ...@@ -410,20 +410,27 @@ namespace Edu.WebApi.Controllers.Course
[HttpPost] [HttpPost]
public ApiResult RunQuestion() public ApiResult RunQuestion()
{ {
// Task.Run(() => { Task.Run(() => {
var list = questionModule.GetQuestionListModule(new RB_Question_ViewModel() { Q_QuestionTypeIds = "16", }); var list = questionModule.GetQuestionListModule(new RB_Question_ViewModel() { Q_QuestionTypeIds = "16", });
if (list != null && list.Count > 0) if (list != null && list.Count > 0)
{ {
foreach (var item in list) foreach (var item in list)
{ {
if (item.QuestionId == 5333)
{
string str = "";
}
try try
{ {
var listenList = JsonHelper.DeserializeObject<List<SubAnswerItem>>(item.Answer); if (!string.IsNullOrEmpty(item.Answer))
{
var listenList = JsonHelper.DeserializeObject<List<SubAnswerItem>>(item.Answer);
}
else
{
string str = analysisQuestion.CheckQuestion(item.QuestionTypeKey, item.QuestionContent, item.Answer, out string newAnswer, IsRequire: false);
if (!string.IsNullOrEmpty(newAnswer))
{
item.Answer = newAnswer;
bool flag = questionModule.SetQuestionModule(item);
}
}
} }
catch catch
{ {
...@@ -436,7 +443,7 @@ namespace Edu.WebApi.Controllers.Course ...@@ -436,7 +443,7 @@ namespace Edu.WebApi.Controllers.Course
} }
} }
} }
//}); });
return ApiResult.Success(); return ApiResult.Success();
} }
......
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