Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-center-auto
Overview
Overview
Details
Activity
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
bltdc
data-center-auto
Commits
963f82be
Commit
963f82be
authored
May 07, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
开启全局推送
parent
50717029
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
ApiServices.cs
AutoTurnOver.Services/ApiServices.cs
+1
-1
Program.cs
ShortagePush/Program.cs
+2
-2
ShortagePushBackgroundService.cs
ShortagePush/ShortagePushBackgroundService.cs
+2
-2
No files found.
AutoTurnOver.Services/ApiServices.cs
View file @
963f82be
...
@@ -484,7 +484,7 @@ namespace AutoTurnOver.Services
...
@@ -484,7 +484,7 @@ namespace AutoTurnOver.Services
{
{
err_datas
.
AddRange
(
result
.
objData
);
err_datas
.
AddRange
(
result
.
objData
);
}
}
page
++;
page
++;
}
}
...
...
ShortagePush/Program.cs
View file @
963f82be
...
@@ -12,8 +12,8 @@ namespace ShortagePush
...
@@ -12,8 +12,8 @@ namespace ShortagePush
static
async
Task
Main
(
string
[]
args
)
static
async
Task
Main
(
string
[]
args
)
{
{
Console
.
WriteLine
(
"推送缺货数据服务"
);
Console
.
WriteLine
(
"推送缺货数据服务"
);
new
ReportServices
().
ShortagePush
();
//
new ReportServices().ShortagePush();
//new ReportServices().ShortagePush(platform: "
ebay
");
//new ReportServices().ShortagePush(platform: "
walmart
");
var
builder
=
new
HostBuilder
().
ConfigureServices
((
hostContext
,
services
)
=>
var
builder
=
new
HostBuilder
().
ConfigureServices
((
hostContext
,
services
)
=>
{
{
services
.
AddHostedService
<
ShortagePushBackgroundService
>();
services
.
AddHostedService
<
ShortagePushBackgroundService
>();
...
...
ShortagePush/ShortagePushBackgroundService.cs
View file @
963f82be
...
@@ -20,11 +20,11 @@ namespace ShortagePush
...
@@ -20,11 +20,11 @@ namespace ShortagePush
try
try
{
{
System
.
Console
.
WriteLine
(
$"开始推送改零数据,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
System
.
Console
.
WriteLine
(
$"开始推送改零数据,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
new
ReportServices
().
ShortagePush
(
platform
:
"ebay"
);
new
ReportServices
().
ShortagePush
();
System
.
Console
.
WriteLine
(
$"结束推送改零数据,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
System
.
Console
.
WriteLine
(
$"结束推送改零数据,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
System
.
Console
.
WriteLine
(
$"开始推送回货数据,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
System
.
Console
.
WriteLine
(
$"开始推送回货数据,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
new
ReportServices
().
ReturnGoodsPush
(
"ebay"
);
new
ReportServices
().
ReturnGoodsPush
();
System
.
Console
.
WriteLine
(
$"结束推送回货数据,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
System
.
Console
.
WriteLine
(
$"结束推送回货数据,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
...
...
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