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
2da263d4
Commit
2da263d4
authored
Jun 06, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
7b61c42b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
MindService.cs
EduSpider/MindService.cs
+1
-1
Program.cs
EduSpider/Program.cs
+11
-5
No files found.
EduSpider/MindService.cs
View file @
2da263d4
...
...
@@ -41,7 +41,7 @@ namespace EduSpider
if
(
Interlocked
.
Exchange
(
ref
inTimer
,
1
)
==
0
)
{
VTX
.
FW
.
Helper
.
LogHelper
.
WriteInfo
(
"RunClassInData"
,
"开始ClassIn数据"
);
new
ClassInFlow
().
StartAsync
();
//
new ClassInFlow().StartAsync();
Interlocked
.
Exchange
(
ref
inTimer
,
0
);
VTX
.
FW
.
Helper
.
LogHelper
.
WriteInfo
(
"RunClassInData"
,
"结束ClassIn数据"
);
}
...
...
EduSpider/Program.cs
View file @
2da263d4
using
EduSpider.Spiders.SchoolHouseKeeper
;
using
System
;
using
System.ServiceProcess
;
using
System.Threading
;
using
TicketSpider.Spiders.ClassInRule
;
namespace
EduSpider
...
...
@@ -9,12 +10,17 @@ namespace EduSpider
{
static
void
Main
(
string
[]
args
)
{
var
stopTime
=
1000
*
60
*
30
;
//30分钟执行一次
while
(
true
)
{
//ClassIn数据
new
ClassInFlow
().
StartAsync
();
Thread
.
Sleep
(
stopTime
);
}
//ClassIn数据
new
ClassInFlow
().
StartAsync
();
////校管家数据
//SchoolTaskHelper.RunTask();
// ////校管家数据
// //SchoolTaskHelper.RunTask();
Console
.
ReadLine
();
...
...
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