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
8aaac8a6
Commit
8aaac8a6
authored
Jan 21, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
定时任务修改
parent
0d3ece04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
TimerJobj.cs
Edu.WebApi/Timers/TimerJobj.cs
+2
-2
No files found.
Edu.WebApi/Timers/TimerJobj.cs
View file @
8aaac8a6
...
...
@@ -115,7 +115,7 @@ namespace Edu.WebApi.Timers
marketTimer
=
new
System
.
Timers
.
Timer
()
{
Interval
=
(
1000
*
60
)
*
(
1
)
//1分钟
检测一次
Interval
=
(
1000
)
*
(
30
)
//30秒
检测一次
};
marketTimer
.
Elapsed
+=
new
System
.
Timers
.
ElapsedEventHandler
(
DealMarketConsultantData
);
marketTimer
.
Enabled
=
true
;
...
...
@@ -155,7 +155,7 @@ namespace Edu.WebApi.Timers
if
(
Interlocked
.
Exchange
(
ref
marketconsultant_Timer
,
1
)
==
0
)
{
//凌晨00:30执行
if
(
DateTime
.
Now
.
Hour
==
0
&&
DateTime
.
Now
.
Minute
==
30
)
if
(
DateTime
.
Now
.
Hour
==
1
&&
DateTime
.
Now
.
Minute
==
5
)
{
marketConsultantModule
.
CreateConsultantDataModule
(
DateTime
.
Now
);
marketConsultantModule
.
CreateMarketDataModule
(
DateTime
.
Now
);
...
...
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