Commit 05f6c2ee authored by 黄奎's avatar 黄奎

页面修改

parent 7665afd3
...@@ -529,7 +529,7 @@ namespace Edu.Common ...@@ -529,7 +529,7 @@ namespace Edu.Common
{ {
Random rd = new Random(); Random rd = new Random();
int result = rd.Next(1, 100); int result = rd.Next(1, 100);
return result % 3; return result % 4;
} }
} }
} }
\ No newline at end of file
...@@ -26,7 +26,7 @@ namespace Edu.Module.Exam ...@@ -26,7 +26,7 @@ namespace Edu.Module.Exam
/// <param name="ChapterId"></param> /// <param name="ChapterId"></param>
/// <param name="NextChapterId"></param> /// <param name="NextChapterId"></param>
/// <returns></returns> /// <returns></returns>
public object CreateCourseExam(int CourseId,int ChapterId,int NextChapterId) public object CreateCourseExam(int CourseId, int ChapterId, int NextChapterId)
{ {
object result = new object(); object result = new object();
var list = course_WordsRepository.GetCourseWordsListRepository(new RB_Course_Words_Extend() var list = course_WordsRepository.GetCourseWordsListRepository(new RB_Course_Words_Extend()
...@@ -51,15 +51,21 @@ namespace Edu.Module.Exam ...@@ -51,15 +51,21 @@ namespace Edu.Module.Exam
int randNum = Common.ConvertHelper.CreateRandomNum(); int randNum = Common.ConvertHelper.CreateRandomNum();
switch (randNum) switch (randNum)
{ {
//根据单词选择中文意思
case 0: case 0:
break; break;
//根据中文意思选择单词
case 1: case 1:
break; break;
//根据日语书写选择中文意思
case 2: case 2:
break;
//根据中文意思选日语书写
case 3:
break; break;
} }
...@@ -85,7 +91,7 @@ namespace Edu.Module.Exam ...@@ -85,7 +91,7 @@ namespace Edu.Module.Exam
QuestionTypeId = 3, QuestionTypeId = 3,
QuestionTypeKey = "fill-in", QuestionTypeKey = "fill-in",
QuestionContent = fillInItems, QuestionContent = fillInItems,
Title= title Title = title
}); });
} }
} }
......
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