|
@ -968,6 +968,9 @@ namespace BBWY.Server.Business |
|
|
var response = jdClient.Execute(req, request.AppToken, DateTime.Now.ToLocalTime()); |
|
|
var response = jdClient.Execute(req, request.AppToken, DateTime.Now.ToLocalTime()); |
|
|
if (response.Json == null) |
|
|
if (response.Json == null) |
|
|
response.Json = JObject.Parse(response.Body); |
|
|
response.Json = JObject.Parse(response.Body); |
|
|
|
|
|
|
|
|
|
|
|
nLogManager.Default().Info($"获取销售属性 任务Id {request.Id} 返回内容 {response.Body} 模板sku数量 {request.GiftTemplateSkuList.Count()}"); |
|
|
|
|
|
|
|
|
var colorProperty = response.Json["jingdong_category_read_findAttrsByCategoryIdUnlimitCate_responce"]["findattrsbycategoryidunlimitcate_result"].FirstOrDefault(j => j["attrValueList"] != null && j["attrValueList"].Count() > 0); |
|
|
var colorProperty = response.Json["jingdong_category_read_findAttrsByCategoryIdUnlimitCate_responce"]["findattrsbycategoryidunlimitcate_result"].FirstOrDefault(j => j["attrValueList"] != null && j["attrValueList"].Count() > 0); |
|
|
if (colorProperty == null) |
|
|
if (colorProperty == null) |
|
|
{ |
|
|
{ |
|
@ -1289,7 +1292,7 @@ namespace BBWY.Server.Business |
|
|
|
|
|
|
|
|
public override void StartJDPromotionDelayTask(StartPromotionTaskDelayRequest request) |
|
|
public override void StartJDPromotionDelayTask(StartPromotionTaskDelayRequest request) |
|
|
{ |
|
|
{ |
|
|
Thread.Sleep(30 * 1000); |
|
|
Thread.Sleep(60 * 1000); |
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|
CheckJDPromotionTask(request.JDPromotionId, request.AppKey, request.AppSecret, request.AppToken); |
|
|
CheckJDPromotionTask(request.JDPromotionId, request.AppKey, request.AppSecret, request.AppToken); |
|
|