Commit dda9fc0b by guotao

fix

parent 2b9fb359
...@@ -772,6 +772,27 @@ namespace ResetOutofstock ...@@ -772,6 +772,27 @@ namespace ResetOutofstock
} }
}); });
Task.Factory.StartNew(() =>
{
while (true)
{
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);
Console.WriteLine($"结束 拉取亚马逊 fba实时库存(多国),线程Id:{Thread.CurrentThread.ManagedThreadId}{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}");
Thread.Sleep(1000 * 60 * 60);
}
catch (Exception ex)
{
Console.WriteLine(" 拉取亚马逊 fba实时库存多国):" + ex.Message);
Console.WriteLine(" 拉取亚马逊 fba实时库存多国) :" + ex.StackTrace);
}
}
});
Task.Factory.StartNew(() => Task.Factory.StartNew(() =>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment