From 31a564d1bd09c5bad063dba9616420727855fe17 Mon Sep 17 00:00:00 2001 From: shanj <18996038927@163.com> Date: Wed, 20 Sep 2023 13:51:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E5=93=81=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BBWYB.Server.Business/Sync/ProductSyncBusiness.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;