From cbb989c7d59ad9df79c2d66c5f12bba9ccc87660 Mon Sep 17 00:00:00 2001 From: shanj <18996038927@163.com> Date: Wed, 1 Nov 2023 00:01:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E6=9E=B6=E7=BB=86=E8=8A=82=E5=BE=AE?= =?UTF-8?q?=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PlatformSDK/JDBusiness.cs | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/BBWY.Server.Business/PlatformSDK/JDBusiness.cs b/BBWY.Server.Business/PlatformSDK/JDBusiness.cs index a55d2cbb..ff9835ae 100644 --- a/BBWY.Server.Business/PlatformSDK/JDBusiness.cs +++ b/BBWY.Server.Business/PlatformSDK/JDBusiness.cs @@ -1126,7 +1126,7 @@ namespace BBWY.Server.Business } Thread.Sleep(30 * 1000); - stepText = "从sku列表接口匹配刚上架的赠品"; + stepText = "查询上架的赠品"; giftSkuList = new List(); var newMainProductSkuList = GetProductSkuList(new SearchProductSkuRequest() { @@ -1139,7 +1139,7 @@ namespace BBWY.Server.Business }); //记录上架返回值 - nLogManager.Default().Info($"任务Id {request.Id} 店铺Id {request.ShopId} 上架赠品sku查询返回值 {JsonConvert.SerializeObject(newMainProductSkuList)}"); + nLogManager.Default().Info($"查询上架的赠品,任务Id {request.Id} 店铺Id {request.ShopId}, {JsonConvert.SerializeObject(newMainProductSkuList)}"); foreach (var ps in newMainProductSkuList) { @@ -1229,22 +1229,22 @@ namespace BBWY.Server.Business #endregion - #region 查询上架的赠品 - stepText = "查询上架的赠品SKU"; - Thread.Sleep(60 * 1000); - searchProductSkuRequest.Sku = string.Join(",", giftSkuIdList); - searchProductSkuRequest.CheckStep = "上架的赠品"; - try - { - giftSkuList = GetProductSkuList(searchProductSkuRequest); - } - catch - { - RollBackWhenStartPromotionError(request.AppKey, request.AppSecret, request.AppToken, giftSkuIdList, request.MainProductSpu, request.FullTitle, brandName, haveGiftTemplateSku); - throw; - } - - #endregion + //#region 查询上架的赠品 + //stepText = "查询上架的赠品SKU"; + //Thread.Sleep(60 * 1000); + //searchProductSkuRequest.Sku = string.Join(",", giftSkuIdList); + //searchProductSkuRequest.CheckStep = "上架的赠品"; + //try + //{ + // giftSkuList = GetProductSkuList(searchProductSkuRequest); + //} + //catch + //{ + // RollBackWhenStartPromotionError(request.AppKey, request.AppSecret, request.AppToken, giftSkuIdList, request.MainProductSpu, request.FullTitle, brandName, haveGiftTemplateSku); + // throw; + //} + + //#endregion } #region 创建活动