From c3288ed6e12e2c18c82bc0715f8c1c6dca60632e Mon Sep 17 00:00:00 2001 From: shanj <18996038927@163.com> Date: Sat, 4 Mar 2023 17:08:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E6=9E=B6=E8=B5=A0=E5=93=81=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E5=A4=B1=E8=B4=A5=E5=A2=9E=E5=8A=A0=E5=9B=9E=E9=80=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BBWY.Server.Business/PlatformSDK/JDBusiness.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/BBWY.Server.Business/PlatformSDK/JDBusiness.cs b/BBWY.Server.Business/PlatformSDK/JDBusiness.cs index b1e85629..6753e8a9 100644 --- a/BBWY.Server.Business/PlatformSDK/JDBusiness.cs +++ b/BBWY.Server.Business/PlatformSDK/JDBusiness.cs @@ -1103,7 +1103,16 @@ namespace BBWY.Server.Business stepText = "查询上架的赠品SKU"; searchProductSkuRequest.Sku = string.Join(",", giftSkuIdList); searchProductSkuRequest.CheckStep = "上架的赠品"; - giftSkuList = GetProductSkuList(searchProductSkuRequest); + try + { + giftSkuList = GetProductSkuList(searchProductSkuRequest); + } + catch + { + RollBackWhenStartPromotionError(request.AppKey, request.AppSecret, request.AppToken, giftSkuIdList, request.MainProductSpu, request.FullTitle, brandName, haveGiftTemplateSku); + throw; + } + #endregion }