Commit 382b3d86 by jianshuqin

优化Shopify平台广告费

parent dde4e028
......@@ -58,8 +58,9 @@ namespace Bailun.DC.SyncShopifyFee
Dapper.SimpleCRUD.SetDialect(SimpleCRUD.Dialect.MySQL);
}
public void Init(DateTime? btime = null, DateTime? etime = null)
public void Init(DateTime? startTime = null, DateTime? etime = null)
{
DateTime? btime = startTime;
foreach (KeyValuePair<string, string> website_platform in dicWebsitePlatform)
{
string[] websitePlatform = website_platform.Key.Split("_");
......@@ -70,7 +71,7 @@ namespace Bailun.DC.SyncShopifyFee
var page = 1;
var pagesize = 1000;
var count = 0;
if (!btime.HasValue)
if (!startTime.HasValue)
{
btime = this.GetBtime(website, platform);
}
......@@ -78,7 +79,6 @@ namespace Bailun.DC.SyncShopifyFee
{
etime = DateTime.Today.AddDays(1);
}
while (page == 1 || (page > 1 && count > 0))
{
try
......
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