Browse Source

上架细节微调

AddValidOverTime
shanji 2 years ago
parent
commit
cbb989c7d5
  1. 36
      BBWY.Server.Business/PlatformSDK/JDBusiness.cs

36
BBWY.Server.Business/PlatformSDK/JDBusiness.cs

@ -1126,7 +1126,7 @@ namespace BBWY.Server.Business
}
Thread.Sleep(30 * 1000);
stepText = "从sku列表接口匹配刚上架的赠品";
stepText = "查询上架的赠品";
giftSkuList = new List<ProductSkuResponse>();
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 创建活动

Loading…
Cancel
Save