Browse Source

1

AddValidOverTime
shanji 2 years ago
parent
commit
166cd267b9
  1. 13
      BBWY.Server.Business/Sync/ProductSyncBusiness.cs

13
BBWY.Server.Business/Sync/ProductSyncBusiness.cs

@ -189,8 +189,7 @@ namespace BBWY.Server.Business.Sync
AppKey = shop.AppKey,
AppSecret = shop.AppSecret,
AppToken = shop.AppToken,
Platform = shop.PlatformId,
Spu = "10021182557318"
Platform = shop.PlatformId
};
while (true)
{
@ -230,11 +229,11 @@ namespace BBWY.Server.Business.Sync
public void SyncAllShopAllProduct()
{
var shopList = venderBusiness.GetShopList();
SyncProduct(shopList.FirstOrDefault(s => s.ShopName == "趣弈手机配件专营店"), true);
//foreach (var shop in shopList)
//{
// Task.Factory.StartNew(() => SyncProduct(shop, true), CancellationToken.None, TaskCreationOptions.LongRunning, taskSchedulerManager.ProductSyncTaskScheduler);
//}
//SyncProduct(shopList.FirstOrDefault(s => s.ShopName == "趣弈手机配件专营店"), true);
foreach (var shop in shopList)
{
Task.Factory.StartNew(() => SyncProduct(shop, true), CancellationToken.None, TaskCreationOptions.LongRunning, taskSchedulerManager.ProductSyncTaskScheduler);
}
}
}
}

Loading…
Cancel
Save