|
@ -1126,7 +1126,7 @@ namespace BBWY.Server.Business |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Thread.Sleep(30 * 1000); |
|
|
Thread.Sleep(30 * 1000); |
|
|
stepText = "从sku列表接口匹配刚上架的赠品"; |
|
|
stepText = "查询上架的赠品"; |
|
|
giftSkuList = new List<ProductSkuResponse>(); |
|
|
giftSkuList = new List<ProductSkuResponse>(); |
|
|
var newMainProductSkuList = GetProductSkuList(new SearchProductSkuRequest() |
|
|
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) |
|
|
foreach (var ps in newMainProductSkuList) |
|
|
{ |
|
|
{ |
|
@ -1229,22 +1229,22 @@ namespace BBWY.Server.Business |
|
|
|
|
|
|
|
|
#endregion
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
#region 查询上架的赠品
|
|
|
//#region 查询上架的赠品
|
|
|
stepText = "查询上架的赠品SKU"; |
|
|
//stepText = "查询上架的赠品SKU";
|
|
|
Thread.Sleep(60 * 1000); |
|
|
//Thread.Sleep(60 * 1000);
|
|
|
searchProductSkuRequest.Sku = string.Join(",", giftSkuIdList); |
|
|
//searchProductSkuRequest.Sku = string.Join(",", giftSkuIdList);
|
|
|
searchProductSkuRequest.CheckStep = "上架的赠品"; |
|
|
//searchProductSkuRequest.CheckStep = "上架的赠品";
|
|
|
try |
|
|
//try
|
|
|
{ |
|
|
//{
|
|
|
giftSkuList = GetProductSkuList(searchProductSkuRequest); |
|
|
// giftSkuList = GetProductSkuList(searchProductSkuRequest);
|
|
|
} |
|
|
//}
|
|
|
catch |
|
|
//catch
|
|
|
{ |
|
|
//{
|
|
|
RollBackWhenStartPromotionError(request.AppKey, request.AppSecret, request.AppToken, giftSkuIdList, request.MainProductSpu, request.FullTitle, brandName, haveGiftTemplateSku); |
|
|
// RollBackWhenStartPromotionError(request.AppKey, request.AppSecret, request.AppToken, giftSkuIdList, request.MainProductSpu, request.FullTitle, brandName, haveGiftTemplateSku);
|
|
|
throw; |
|
|
// throw;
|
|
|
} |
|
|
//}
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
//#endregion
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#region 创建活动
|
|
|
#region 创建活动
|
|
|