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
7e0ec86f
Commit
7e0ec86f
authored
Jun 01, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
2e99da22
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
221 additions
and
117 deletions
+221
-117
IStuHomeWorkRepository.cs
EduSpider.IRepository/IStuHomeWorkRepository.cs
+9
-4
ICourseService.cs
EduSpider.IServices/ICourseService.cs
+7
-0
ExamWorkResult.cs
EduSpider.Model/Extend/ExamWorkResult.cs
+1
-1
StuHomeWorkRepository.cs
EduSpider.Repository/StuHomeWorkRepository.cs
+178
-106
CourseService.cs
EduSpider.Services/CourseService.cs
+10
-0
TeacherController.cs
EduSpider.WebApi/Controllers/Student/TeacherController.cs
+13
-0
ClassInFlow.cs
EduSpider/Spiders/ClassInRule/ClassInFlow.cs
+3
-3
HomeWorkManager.cs
EduSpider/Spiders/ClassInRule/HomeWorkManager.cs
+0
-3
No files found.
EduSpider.IRepository/IStuHomeWorkRepository.cs
View file @
7e0ec86f
using
EduSpider.Model.Entity
;
using
EduSpider.Model.Entity
;
using
EduSpider.Model.Extend
;
using
EduSpider.Model.Query
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
VTX.FW.Config
;
using
VTX.FW.Config
;
using
VTX.FW.DB
;
using
VTX.FW.DB
;
using
System.Text
;
using
System.Linq
;
using
EduSpider.Model.Query
;
using
EduSpider.Model.Extend
;
namespace
EduSpider.IRepository
namespace
EduSpider.IRepository
{
{
...
@@ -21,6 +19,13 @@ namespace EduSpider.IRepository
...
@@ -21,6 +19,13 @@ namespace EduSpider.IRepository
/// <returns></returns>
/// <returns></returns>
public
bool
BatchSetStuHomeWorkRepository
(
List
<
RB_Stu_HomeWork
>
homeWorks
);
public
bool
BatchSetStuHomeWorkRepository
(
List
<
RB_Stu_HomeWork
>
homeWorks
);
/// <summary>
/// 创建课程作业评论
/// </summary>
/// <param name="CourseId">课程编号</param>
/// <returns></returns>
public
List
<
ExamWorkResult
>
CreateHomeWorkCommentRepository
(
int
CourseId
);
/// <summary>
/// <summary>
/// 获取学生作业列表
/// 获取学生作业列表
/// </summary>
/// </summary>
...
...
EduSpider.IServices/ICourseService.cs
View file @
7e0ec86f
...
@@ -130,5 +130,12 @@ namespace EduSpider.IServices
...
@@ -130,5 +130,12 @@ namespace EduSpider.IServices
/// </summary>
/// </summary>
/// <returns></returns>
/// <returns></returns>
public
List
<
RB_Comment
>
GetSysComment
();
public
List
<
RB_Comment
>
GetSysComment
();
/// <summary>
/// 创建课程作业评论
/// </summary>
/// <param name="CourseId">课程编号</param>
/// <returns></returns>
public
void
CreateHomeWorkComment
(
int
CourseId
);
}
}
}
}
EduSpider.Model/Extend/ExamWorkResult.cs
View file @
7e0ec86f
...
@@ -115,7 +115,7 @@ namespace EduSpider.Model.Extend
...
@@ -115,7 +115,7 @@ namespace EduSpider.Model.Extend
string
str
=
""
;
string
str
=
""
;
switch
(
this
.
HomeWorkStatus
)
switch
(
this
.
HomeWorkStatus
)
{
{
case
0
:
str
=
"未
交作业
"
;
break
;
case
0
:
str
=
"未
提交
"
;
break
;
case
1
:
str
=
"未批阅"
;
break
;
case
1
:
str
=
"未批阅"
;
break
;
case
2
:
str
=
"已批阅"
;
break
;
case
2
:
str
=
"已批阅"
;
break
;
}
}
...
...
EduSpider.Repository/StuHomeWorkRepository.cs
View file @
7e0ec86f
This diff is collapsed.
Click to expand it.
EduSpider.Services/CourseService.cs
View file @
7e0ec86f
...
@@ -436,6 +436,16 @@ namespace EduSpider.Services
...
@@ -436,6 +436,16 @@ namespace EduSpider.Services
var
list
=
CommentRepository
.
GetCommentListRepository
();
var
list
=
CommentRepository
.
GetCommentListRepository
();
return
list
;
return
list
;
}
}
/// <summary>
/// 创建课程作业评论
/// </summary>
/// <param name="CourseId">课程编号</param>
/// <returns></returns>
public
void
CreateHomeWorkComment
(
int
CourseId
)
{
StuHomeWorkRepository
.
CreateHomeWorkCommentRepository
(
CourseId
);
}
}
}
}
}
EduSpider.WebApi/Controllers/Student/TeacherController.cs
View file @
7e0ec86f
...
@@ -392,5 +392,18 @@ namespace EduSpider.WebApi.Controllers
...
@@ -392,5 +392,18 @@ namespace EduSpider.WebApi.Controllers
var
list
=
CourseService
.
RemoveStuComment
(
Ids
);
var
list
=
CourseService
.
RemoveStuComment
(
Ids
);
return
ApiResult
.
Success
(
data
:
list
);
return
ApiResult
.
Success
(
data
:
list
);
}
}
[
HttpPost
]
[
HttpGet
]
/// <summary>
/// 生成课程评论
/// </summary>
/// <returns></returns>
public
ApiResult
CreateCourseComment
()
{
int
CourseId
=
base
.
ReqParameters
.
GetInt
(
"CourseId"
);
CourseService
.
CreateHomeWorkComment
(
CourseId
);
return
ApiResult
.
Success
();
}
}
}
}
}
EduSpider/Spiders/ClassInRule/ClassInFlow.cs
View file @
7e0ec86f
...
@@ -20,15 +20,15 @@ namespace TicketSpider.Spiders.ClassInRule
...
@@ -20,15 +20,15 @@ namespace TicketSpider.Spiders.ClassInRule
Console
.
WriteLine
(
"开始模拟登录信息......."
);
Console
.
WriteLine
(
"开始模拟登录信息......."
);
string
loginCookies
=
""
;
string
loginCookies
=
""
;
loginCookies
=
ClassInAccountManager
.
GetInstance
();
loginCookies
=
ClassInAccountManager
.
GetInstance
();
//
loginCookies = "_eeos_uid=12780052; _eeos_useraccount=18140082327; _eeos_userlogo=%2Fupload%2Fimages%2F20200126%2F709df9532bee722f2268_70.jpg; _eeos_domain=.eeo.cn; _eeos_remember=1; _eeos_sid=12780052; _eeos_nsid=kspGu2gfMu%2BU2EFgLpSGyg%3D%3D; sensorsdata2015jssdkcross=%7B%22distinct_id%22%3A%2212780052%22%2C%22first_id%22%3A%22180f59907abbed-081e4952c5b26f-12333272-2073600-180f59907acbc8%22%2C%22props%22%3A%7B%22%24latest_traffic_source_type%22%3A%22%E7%9B%B4%E6%8E%A5%E6%B5%81%E9%87%8F%22%2C%22%24latest_search_keyword%22%3A%22%E6%9C%AA%E5%8F%96%E5%88%B0%E5%80%BC_%E7%9B%B4%E6%8E%A5%E6%89%93%E5%BC%80%22%2C%22%24latest_referrer%22%3A%22%22%7D%2C%22%24device_id%22%3A%22180f59907abbed-081e4952c5b26f-12333272-2073600-180f59907acbc8%22%7D; _eeos_traffic=EqlIOFq4S2hz5FTTtHzNUViBYcWCixrJYMCF6Y5yJuD8eq8ZwPvVSHMvUkLFA5lzNoaTrDBpGhFOuRmo3R6CQ5GeSsJx1IEakyt2K%2B3ifco%3D; PHPSESSID=3etqs18ka2s425omq6uqsus8s2; __tk_id=7a20b97a04709afc3137ec211e756d5f";
loginCookies
=
"_eeos_uid=12780052; _eeos_useraccount=18140082327; _eeos_userlogo=%2Fupload%2Fimages%2F20200126%2F709df9532bee722f2268_70.jpg; _eeos_domain=.eeo.cn; _eeos_remember=1; _eeos_sid=12780052; _eeos_nsid=kspGu2gfMu%2BU2EFgLpSGyg%3D%3D; sensorsdata2015jssdkcross=%7B%22distinct_id%22%3A%2212780052%22%2C%22first_id%22%3A%22180f59907abbed-081e4952c5b26f-12333272-2073600-180f59907acbc8%22%2C%22props%22%3A%7B%22%24latest_traffic_source_type%22%3A%22%E7%9B%B4%E6%8E%A5%E6%B5%81%E9%87%8F%22%2C%22%24latest_search_keyword%22%3A%22%E6%9C%AA%E5%8F%96%E5%88%B0%E5%80%BC_%E7%9B%B4%E6%8E%A5%E6%89%93%E5%BC%80%22%2C%22%24latest_referrer%22%3A%22%22%7D%2C%22%24device_id%22%3A%22180f59907abbed-081e4952c5b26f-12333272-2073600-180f59907acbc8%22%7D; _eeos_traffic=EqlIOFq4S2hz5FTTtHzNUViBYcWCixrJYMCF6Y5yJuD8eq8ZwPvVSHMvUkLFA5lzNoaTrDBpGhFOuRmo3R6CQ5GeSsJx1IEakyt2K%2B3ifco%3D; PHPSESSID=3etqs18ka2s425omq6uqsus8s2; __tk_id=7a20b97a04709afc3137ec211e756d5f"
;
Console
.
WriteLine
(
"cookies:"
+
loginCookies
);
Console
.
WriteLine
(
"cookies:"
+
loginCookies
);
Console
.
WriteLine
(
"开始获取老师信息"
);
Console
.
WriteLine
(
"开始获取老师信息"
);
new
TeacherManager
().
RunTeacher
(
loginCookies
);
new
TeacherManager
().
RunTeacher
(
loginCookies
);
Console
.
WriteLine
(
"老师信息更新结束"
);
Console
.
WriteLine
(
"老师信息更新结束"
);
//new StudentManager().RunAsync(loginCookies);
//new StudentManager().RunAsync(loginCookies);
//new CourseManager()
.RunCourse(loginCookies);
CourseManager
.
RunCourse
(
loginCookies
);
//new HomeWorkManager()
.RunHomeWork(loginCookies);
HomeWorkManager
.
RunHomeWork
(
loginCookies
);
}
}
}
}
}
}
EduSpider/Spiders/ClassInRule/HomeWorkManager.cs
View file @
7e0ec86f
...
@@ -97,7 +97,6 @@ namespace EduSpider.Spiders.ClassInRule
...
@@ -97,7 +97,6 @@ namespace EduSpider.Spiders.ClassInRule
}
}
}
}
}
}
}
}
/// <summary>
/// <summary>
...
@@ -255,7 +254,5 @@ namespace EduSpider.Spiders.ClassInRule
...
@@ -255,7 +254,5 @@ namespace EduSpider.Spiders.ClassInRule
stuHomeWorkRepository
.
BatchSetStuHomeWorkRepository
(
list
);
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