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
67df4761
Commit
67df4761
authored
Jan 27, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
88ced2b7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
QuestionHelper.cs
Edu.Common/Data/QuestionHelper.cs
+6
-6
No files found.
Edu.Common/Data/QuestionHelper.cs
View file @
67df4761
...
...
@@ -221,8 +221,8 @@ namespace Edu.Common.Data
{
if
(
subItem
.
Contains
(
"答案解析:"
)
||
subItem
.
Contains
(
"解析:"
))
{
string
answerReg1
=
@"答案解析
:
"
;
string
answerReg2
=
@"解析
:
"
;
string
answerReg1
=
@"答案解析
[::]
"
;
string
answerReg2
=
@"解析
[::]
"
;
Regex
reg
=
new
Regex
(
answerReg1
);
Regex
reg2
=
new
Regex
(
answerReg2
);
string
[]
answerAnalysisArray
=
null
;
...
...
@@ -239,10 +239,10 @@ namespace Edu.Common.Data
model
.
AnswerAnalysis
=
answerAnalysisArray
.
Length
>
1
?
answerAnalysisArray
[
1
]
:
""
;
}
}
if
(
subItem
.
Contains
(
"答案:"
))
if
(
subItem
.
Contains
(
"答案:"
)
||
subItem
.
Contains
(
"答案:"
)
)
{
answerObj
=
subItem
;
var
answerArray
=
Regex
.
Split
(
subItem
,
"
答案:
"
);
var
answerArray
=
Regex
.
Split
(
subItem
,
"
[答][案][::]
"
);
if
(
answerArray
!=
null
&&
answerArray
.
Length
>
0
)
{
model
.
QuestionAnswer
=
answerArray
.
Length
>
1
?
answerArray
[
1
]
:
""
;
...
...
@@ -250,8 +250,8 @@ namespace Edu.Common.Data
}
if
(
subItem
.
Contains
(
"难易程度:"
)
||
subItem
.
Contains
(
"难易度:"
))
{
string
easyReg1
=
@"难易程度
:
"
;
string
easyReg2
=
@"难易度
:
"
;
string
easyReg1
=
@"难易程度
[::]
"
;
string
easyReg2
=
@"难易度
[::]
"
;
Regex
reg
=
new
Regex
(
easyReg1
);
Regex
reg2
=
new
Regex
(
easyReg2
);
string
[]
easyTypeArray
=
null
;
...
...
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