diff --git a/BBWYB.Server.Business/Sync/ProductSyncBusiness.cs b/BBWYB.Server.Business/Sync/ProductSyncBusiness.cs index 4bcca99..b31bac2 100644 --- a/BBWYB.Server.Business/Sync/ProductSyncBusiness.cs +++ b/BBWYB.Server.Business/Sync/ProductSyncBusiness.cs @@ -29,8 +29,8 @@ namespace BBWYB.Server.Business.Sync /// public void SyncAllShopAllProduct() { - //var shopList = venderBusiness.GetShopList(platform: Enums.Platform.拳探); - var shopList = venderBusiness.GetShopList(shopId: 9); + var shopList = venderBusiness.GetShopList(platform: Enums.Platform.拳探); + //var shopList = venderBusiness.GetShopList(shopId: 9); foreach (var shop in shopList) { Task.Factory.StartNew(() => SyncProduct(shop, true), CancellationToken.None, TaskCreationOptions.LongRunning, taskSchedulerManager.SyncProductTaskScheduler); @@ -78,6 +78,8 @@ namespace BBWYB.Server.Business.Sync while (true) { + Console.WriteLine($"{shop.ShopName} 获取第{request.PageIndex}页产品"); + var pListRes = productBusiness.GetProductList(request); if (pListRes == null || pListRes.Items == null || pListRes.Items.Count == 0) break;