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
4f9a08e9
Commit
4f9a08e9
authored
May 25, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
dc1ad233
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
RB_HomeWork.cs
EduSpider.Model/Entity/RB_HomeWork.cs
+10
-0
HomeWorkManager.cs
EduSpider/Spiders/ClassInRule/HomeWorkManager.cs
+8
-1
No files found.
EduSpider.Model/Entity/RB_HomeWork.cs
View file @
4f9a08e9
...
...
@@ -140,5 +140,15 @@ namespace EduSpider.Model.Entity
/// </summary>
public
DateTime
update_time
{
get
;
set
;
}
public
int
ref_num
{
get
;
set
;
}
public
int
refc_num
{
get
;
set
;
}
public
decimal
av_score
{
get
;
set
;
}
public
decimal
max_score
{
get
;
set
;
}
public
decimal
min_score
{
get
;
set
;
}
}
}
EduSpider/Spiders/ClassInRule/HomeWorkManager.cs
View file @
4f9a08e9
...
...
@@ -26,7 +26,7 @@ namespace EduSpider.Spiders.ClassInRule
int
perpage
=
20
;
var
pageCount
=
1
;
var
request
=
Utility
.
HttpHelper
.
GenerateHttp
(
cookie
);
string
queryStr
=
"page={0}&perpage={1}"
;
string
queryStr
=
"page={0}&perpage={1}
&analysis=1
"
;
string
paramStr
=
string
.
Format
(
queryStr
,
pageCount
,
perpage
);
var
content
=
new
StringContent
(
paramStr
,
System
.
Text
.
Encoding
.
UTF8
,
"application/x-www-form-urlencoded"
);
IHomeWorkRepository
homeWorkRepository
=
new
HomeWorkRepository
();
...
...
@@ -144,6 +144,11 @@ namespace EduSpider.Spiders.ClassInRule
th_cancel
=
homeObj
.
GetString
(
"th_cancel"
),
add_time
=
ConvertHelper
.
UnixToDateTime
(
homeObj
.
GetInt
(
"add_time"
)),
update_time
=
ConvertHelper
.
UnixToDateTime
(
homeObj
.
GetInt
(
"update_time"
)),
ref_num
=
homeObj
.
GetInt
(
"ref_num"
),
refc_num
=
homeObj
.
GetInt
(
"refc_num"
),
av_score
=
homeObj
.
GetDecimal
(
"av_score"
),
max_score
=
homeObj
.
GetDecimal
(
"max_score"
),
min_score
=
homeObj
.
GetDecimal
(
"min_score"
),
});
}
}
...
...
@@ -250,5 +255,7 @@ namespace EduSpider.Spiders.ClassInRule
stuHomeWorkRepository
.
BatchSetStuHomeWorkRepository
(
list
);
}
}
}
}
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