Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
Education
Commits
b6efb16d
Commit
b6efb16d
authored
3 years ago
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
3af710a4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
4 deletions
+20
-4
PaperModule.cs
Edu.Module.Exam/PaperModule.cs
+16
-0
AnalysisQuestionTypeModule.cs
Edu.Module.Question/AnalysisQuestionTypeModule.cs
+1
-1
AppletIndexController.cs
Edu.WebApi/Controllers/Applet/AppletIndexController.cs
+3
-3
No files found.
Edu.Module.Exam/PaperModule.cs
View file @
b6efb16d
...
@@ -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
{
{
...
...
This diff is collapsed.
Click to expand it.
Edu.Module.Question/AnalysisQuestionTypeModule.cs
View file @
b6efb16d
...
@@ -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
=
"请设置答案"
;
...
...
This diff is collapsed.
Click to expand it.
Edu.WebApi/Controllers/Applet/AppletIndexController.cs
View file @
b6efb16d
...
@@ -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
(
"Publish
Id"
);
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
(
Publish
Id
<=
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
:
Publish
Id
);
return
ApiResult
.
Success
(
data
:
data
);
return
ApiResult
.
Success
(
data
:
data
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment