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
234377b4
Commit
234377b4
authored
Sep 06, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
310825fd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
PaperModule.cs
Edu.Module.Exam/PaperModule.cs
+6
-4
AppletIndexController.cs
Edu.WebApi/Controllers/Applet/AppletIndexController.cs
+2
-1
No files found.
Edu.Module.Exam/PaperModule.cs
View file @
234377b4
...
...
@@ -1257,7 +1257,7 @@ namespace Edu.Module.Exam
var
QuestionContentObj
=
analysisQuestion
.
ParsingQuestion
(
questionModel
.
QuestionTypeKey
,
sItem
.
StudentContent
,
isEdit
:
true
);
var
qObj
=
new
{
PaperDetailsId
=
sItem
.
DetailsId
,
//试卷问题编号
PaperDetailsId
=
sItem
.
DetailsId
,
//试卷问题编号
StundetDetailsId
=
sItem
.
Id
,
//考生答题编号
sItem
.
PaperId
,
questionModel
.
Title
,
...
...
@@ -1267,10 +1267,11 @@ namespace Edu.Module.Exam
questionModel
.
QuestionTypeKey
,
questionModel
.
DifficultyType
,
questionModel
.
Score
,
Answer
=
sItem
.
StundetAnswer
,
Answer
=
isShowAnswer
?
questionModel
.
Answer
:
sItem
.
StundetAnswer
,
sItem
.
StundetAnswer
,
AnswerParse
=
""
,
StundetScore
=
0
,
AnswerParse
=
questionModel
.
AnswerParse
,
StundetScore
=
sItem
.
StundetScore
,
sItem
.
IsMarking
};
questionList
.
Add
(
qObj
);
}
...
...
@@ -1307,6 +1308,7 @@ namespace Edu.Module.Exam
StundetAnswer
=
""
,
AnswerParse
=
""
,
StundetScore
=
0
,
IsMarking
=
0
,
};
questionList
.
Add
(
qObj
);
}
...
...
Edu.WebApi/Controllers/Applet/AppletIndexController.cs
View file @
234377b4
...
...
@@ -554,6 +554,7 @@ namespace Edu.WebApi.Controllers.Applet
var
PaperId
=
base
.
ParmJObj
.
GetInt
(
"PaperId"
);
var
Id
=
base
.
ParmJObj
.
GetInt
(
"Id"
);
var
GuestId
=
base
.
ParmJObj
.
GetInt
(
"GuestId"
,
0
);
var
isShowAnswer
=
base
.
ParmJObj
.
GetBoolValue
(
"isShowAnswer"
);
if
(
Id
<=
0
)
{
return
ApiResult
.
ParamIsNull
(
message
:
"请传递考试编号!"
);
...
...
@@ -562,7 +563,7 @@ namespace Edu.WebApi.Controllers.Applet
{
return
ApiResult
.
ParamIsNull
(
message
:
"请传递学员编号!"
);
}
var
data
=
paperModule
.
AppGetExamPaperInfoModule
(
PaperId
,
isShowAnswer
:
false
,
GuestId
:
GuestId
,
PublishId
:
Id
);
var
data
=
paperModule
.
AppGetExamPaperInfoModule
(
PaperId
,
isShowAnswer
:
isShowAnswer
,
GuestId
:
GuestId
,
PublishId
:
Id
);
return
ApiResult
.
Success
(
data
:
data
);
}
...
...
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