Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
EduSpider
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
viitto
EduSpider
Commits
cd3db2a9
Commit
cd3db2a9
authored
May 31, 2023
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
6f3d5c55
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
StuExamScoreHelper.cs
EduSpider.Utility/Data/StuExamScoreHelper.cs
+2
-1
CourseManager.cs
EduSpider/Spiders/ClassInRule/CourseManager.cs
+0
-4
No files found.
EduSpider.Utility/Data/StuExamScoreHelper.cs
View file @
cd3db2a9
...
@@ -200,12 +200,13 @@ namespace EduSpider.Utility.Data
...
@@ -200,12 +200,13 @@ namespace EduSpider.Utility.Data
{
{
if
(
dt
.
Columns
.
Contains
(
i
.
ToString
()))
if
(
dt
.
Columns
.
Contains
(
i
.
ToString
()))
{
{
decimal
.
TryParse
(
dt
.
Rows
[
2
][
i
.
ToString
()].
ToString
(),
out
decimal
NewScore
);
EQList
.
Add
(
new
ExamQuestionModel
()
EQList
.
Add
(
new
ExamQuestionModel
()
{
{
Id
=
i
,
Id
=
i
,
Difficulty
=
dt
.
Rows
[
0
][
i
.
ToString
()].
ToString
(),
Difficulty
=
dt
.
Rows
[
0
][
i
.
ToString
()].
ToString
(),
KnowledgePoint
=
dt
.
Rows
[
1
][
i
.
ToString
()].
ToString
(),
KnowledgePoint
=
dt
.
Rows
[
1
][
i
.
ToString
()].
ToString
(),
Score
=
Convert
.
ToDecimal
(
dt
.
Rows
[
2
][
i
.
ToString
()].
ToString
())
Score
=
NewScore
});
});
}
}
else
else
...
...
EduSpider/Spiders/ClassInRule/CourseManager.cs
View file @
cd3db2a9
...
@@ -173,10 +173,6 @@ namespace EduSpider.Spiders.ClassInRule
...
@@ -173,10 +173,6 @@ namespace EduSpider.Spiders.ClassInRule
{
{
var
request
=
Utility
.
HttpHelper
.
GenerateHttp
(
cookie
);
var
request
=
Utility
.
HttpHelper
.
GenerateHttp
(
cookie
);
string
queryStr
=
"courseId={0}"
;
string
queryStr
=
"courseId={0}"
;
if
(
courseId
==
211441479
)
{
string
str
=
""
;
}
string
paramStr
=
string
.
Format
(
queryStr
,
courseId
);
string
paramStr
=
string
.
Format
(
queryStr
,
courseId
);
var
content
=
new
StringContent
(
paramStr
,
System
.
Text
.
Encoding
.
UTF8
,
"application/x-www-form-urlencoded"
);
var
content
=
new
StringContent
(
paramStr
,
System
.
Text
.
Encoding
.
UTF8
,
"application/x-www-form-urlencoded"
);
ICourseStudentRepository
courseStudentRepository
=
new
CourseStudentRepository
();
ICourseStudentRepository
courseStudentRepository
=
new
CourseStudentRepository
();
...
...
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