Commit 9e5181d5 by jianshuqin

新增功能:新开了3个站点shopify的广告费

parent 6e5a61a6
...@@ -13,7 +13,12 @@ namespace Bailun.DC.SyncShopifyFee ...@@ -13,7 +13,12 @@ namespace Bailun.DC.SyncShopifyFee
public class Services : BackgroundService public class Services : BackgroundService
{ {
string url = "http://scrm.bailuntec.com/ScrmApi/api/ApiGetAdFeeLog"; //?btime=2021-10-01&etime=2021-10-03&page=1&rows=100 IList<string> listUrl = new string[] {
"http://scrm.bailuntec.com/ScrmApi/api/ApiGetAdFeeLog", //?btime=2021-10-01&etime=2021-10-03&page=1&rows=100
"http://us.btm.bailuntec.com/ScrmApi/api/ApiGetAdFeeLog", //?btime=2021-10-01&etime=2021-10-03&page=1&rows=100
"http://us2.btm.bailuntec.com/ScrmApi/api/ApiGetAdFeeLog", //?btime=2021-10-01&etime=2021-10-03&page=1&rows=100
"http://au.btm.bailuntec.com/ScrmApi/api/ApiGetAdFeeLog" //?btime=2021-10-01&etime=2021-10-03&page=1&rows=100
};
private Timer _timer; private Timer _timer;
...@@ -46,6 +51,8 @@ namespace Bailun.DC.SyncShopifyFee ...@@ -46,6 +51,8 @@ namespace Bailun.DC.SyncShopifyFee
public void Init(DateTime? btime = null, DateTime? etime = null) public void Init(DateTime? btime = null, DateTime? etime = null)
{ {
foreach (string url in listUrl)
{
var page = 1; var page = 1;
var pagesize = 1000; var pagesize = 1000;
var count = 0; var count = 0;
...@@ -83,6 +90,7 @@ namespace Bailun.DC.SyncShopifyFee ...@@ -83,6 +90,7 @@ namespace Bailun.DC.SyncShopifyFee
} }
} }
} }
}
public void Save(IList<response_shopify_fee> list) public void Save(IList<response_shopify_fee> list)
{ {
......
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