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
d0fb9dda
Commit
d0fb9dda
authored
Aug 25, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
验证修改
parent
e3bdfe27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
8 deletions
+24
-8
AnalysisQuestionTypeModule.cs
Edu.Module.Question/AnalysisQuestionTypeModule.cs
+24
-8
No files found.
Edu.Module.Question/AnalysisQuestionTypeModule.cs
View file @
d0fb9dda
...
...
@@ -163,14 +163,7 @@ namespace Edu.Module.Question
break
;
//共用选择题
case
"sharing-choose"
:
if
(!
string
.
IsNullOrEmpty
(
data
))
{
obj
=
Common
.
Plugin
.
JsonHelper
.
DeserializeObject
<
List
<
List
<
matchingItem
>>>(
data
);
}
else
{
obj
=
null
;
}
obj
=
GetShareChooseList
(
data
,
isNoAnswer
);
break
;
//其它题
case
"other"
:
...
...
@@ -375,6 +368,29 @@ namespace Edu.Module.Question
return
shortAnswerList
;
}
/// <summary>
/// 共用选项题列表
/// </summary>
/// <param name="data"></param>
/// <param name="isNoAnswer"></param>
/// <returns></returns>
private
object
GetShareChooseList
(
string
data
,
bool
isNoAnswer
)
{
var
shareChooseList
=
new
List
<
List
<
matchingItem
>>();
if
(!
string
.
IsNullOrEmpty
(
data
))
{
shareChooseList
=
Common
.
Plugin
.
JsonHelper
.
DeserializeObject
<
List
<
List
<
matchingItem
>>>(
data
);
}
if
(
isNoAnswer
&&
shareChooseList
!=
null
&&
shareChooseList
.
Count
>
1
)
{
shareChooseList
[
1
].
ForEach
(
item
=>
{
item
.
Name
=
""
;
});
}
return
shareChooseList
;
}
/// <summary>
/// 问题验证
/// </summary>
...
...
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