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
34eccf8f
Commit
34eccf8f
authored
Jun 06, 2023
by
guotao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
58cbd47e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
Program.cs
ResetOutofstock/Program.cs
+2
-1
ResetOutofstockBackgrounService.cs
ResetOutofstock/ResetOutofstockBackgrounService.cs
+7
-7
No files found.
ResetOutofstock/Program.cs
View file @
34eccf8f
...
...
@@ -66,7 +66,8 @@ namespace ResetOutofstock
//new AmazonDataSynchroService().AnaFbaOverageStorageFeeReport(report_id: "937084019471");
//new AmazonDataSynchroService().AnaFbaStorageFeeReport(data_id: "323250019473");
//new AmazonDataSynchroService().AnaFbaInventoryCountryReport();
new
AmazonDataSynchroService
().
AnaFbaInventoryReport
(
report_id
:
"237742019514"
);
//new AmazonDataSynchroService().AnaFbaInventoryCountryReport(report_id: "237742019514");
//new AmazonDataSynchroService().SynchroReportIdByCreate(
// FikaAmazonAPI.Utils.Constants.ReportTypes.GET_FBA_STORAGE_FEE_CHARGES_DATA,
...
...
ResetOutofstock/ResetOutofstockBackgrounService.cs
View file @
34eccf8f
...
...
@@ -750,7 +750,7 @@ namespace ResetOutofstock
}
});
Task
.
Factory
.
StartNew
(()
=>
{
while
(
true
)
...
...
@@ -759,9 +759,9 @@ namespace ResetOutofstock
try
{
Console
.
WriteLine
(
$"开始 拉取亚马逊 fba实时库存,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
new
AmazonDataSynchroService
().
SynchroReportIdByCreate
(
FikaAmazonAPI
.
Utils
.
Constants
.
ReportTypes
.
GET_AFN_INVENTORY_DATA
,
17
,
interval
:
24
);
new
AmazonDataSynchroService
().
SynchroReportIdByCreate
(
FikaAmazonAPI
.
Utils
.
Constants
.
ReportTypes
.
GET_AFN_INVENTORY_DATA
,
17
,
interval
:
48
);
Console
.
WriteLine
(
$"结束 拉取亚马逊 fba实时库存,线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
Thread
.
Sleep
(
1000
*
60
*
60
*
2
);
Thread
.
Sleep
(
1000
*
60
*
60
*
4
);
}
catch
(
Exception
ex
)
{
...
...
@@ -780,9 +780,9 @@ namespace ResetOutofstock
try
{
Console
.
WriteLine
(
$"开始 拉取亚马逊 fba实时库存(多国),线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
new
AmazonDataSynchroService
().
SynchroReportIdByCreate
(
FikaAmazonAPI
.
Utils
.
Constants
.
ReportTypes
.
GET_AFN_INVENTORY_DATA_BY_COUNTRY
,
17
,
interval
:
24
);
new
AmazonDataSynchroService
().
SynchroReportIdByCreate
(
FikaAmazonAPI
.
Utils
.
Constants
.
ReportTypes
.
GET_AFN_INVENTORY_DATA_BY_COUNTRY
,
17
,
interval
:
48
);
Console
.
WriteLine
(
$"结束 拉取亚马逊 fba实时库存(多国),线程Id:
{
Thread
.
CurrentThread
.
ManagedThreadId
}
,
{
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)}
"
);
Thread
.
Sleep
(
1000
*
60
*
60
*
2
);
Thread
.
Sleep
(
1000
*
60
*
60
*
4
);
}
catch
(
Exception
ex
)
{
...
...
@@ -866,8 +866,8 @@ namespace ResetOutofstock
}
});
Task
.
Factory
.
StartNew
(()
=>
{
...
...
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