Browse Source

debug pjzs

AddValidOverTime
shanji 2 years ago
parent
commit
4060fc3914
  1. 18
      BBWY.Server.Business/EvaluationAssistant/EvaluationAssistantBusiness.cs
  2. 6
      BBWY.Server.Business/PlatformSDK/JDBusiness.cs
  3. 2
      BBWY.Server.Model/Dto/Request/PromotionTask/StartPromotionTaskRequest.cs

18
BBWY.Server.Business/EvaluationAssistant/EvaluationAssistantBusiness.cs

@ -513,14 +513,18 @@ namespace BBWY.Server.Business
}
if (!string.IsNullOrEmpty(dbPromotionTask.CustomMotherSku))
CheckRepeatSkuInRuningTask(runingTaskList, dbPromotionTask.CustomMotherSku);
if (request.IsDebug == null || request.IsDebug == false)
{
if (!string.IsNullOrEmpty(dbPromotionTask.CustomMotherSku))
CheckRepeatSkuInRuningTask(runingTaskList, dbPromotionTask.CustomMotherSku);
if (!string.IsNullOrEmpty(motherTemplateSku))
CheckRepeatSkuInRuningTask(runingTaskList, motherTemplateSku);
if (!string.IsNullOrEmpty(motherTemplateSku))
CheckRepeatSkuInRuningTask(runingTaskList, motherTemplateSku);
if (!string.IsNullOrEmpty(dbPromotionTask.MainProductSku))
CheckRepeatSkuInRuningTask(runingTaskList, dbPromotionTask.MainProductSku);
}
if (!string.IsNullOrEmpty(dbPromotionTask.MainProductSku))
CheckRepeatSkuInRuningTask(runingTaskList, dbPromotionTask.MainProductSku);
var host = GetPlatformRelayAPIHost(Enums.Platform.);
@ -761,7 +765,7 @@ namespace BBWY.Server.Business
});
}
/// <summary>
/// 停止任务

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

@ -1055,6 +1055,10 @@ namespace BBWY.Server.Business
var req = new SkuWriteUpdateSkusRequest();
req.wareId = wareId;
req.skus = skusParamList;
//输出日志
nLogManager.Default().Info($"上架赠品请求参数,任务Id{request.Id},{JsonConvert.SerializeObject(req)}");
var res = jdClient.Execute(req, request.AppToken, DateTime.Now.ToLocalTime());
if (res.Json == null)
@ -1521,7 +1525,7 @@ namespace BBWY.Server.Business
errormsg = $"{errormsg}\r\n请联系京东物流负责人,开通对应事业部ISV的授权操作";
throw new BusinessException(errormsg);
}
return res.Json["jingdong_eclp_po_queryPoOrder_responce"]["queryPoModelList"].Children().Select(x => new JDInStoreOrderDetail()
{
deptNo = x.Value<string>("deptNo"),

2
BBWY.Server.Model/Dto/Request/PromotionTask/StartPromotionTaskRequest.cs

@ -8,6 +8,8 @@ namespace BBWY.Server.Model.Dto
public class StartPromotionTaskRequest : PlatformRequest
{
public long Id { get; set; }
public bool? IsDebug { get; set; }
}
public class StartPromotionTaskRequest2 : PlatformRequest

Loading…
Cancel
Save