Browse Source

发布任务保存日志

pjzs_starttask_update
sanji 2 years ago
parent
commit
6970c012b5
  1. 7
      BBWY.Server.Business/EvaluationAssistant/EvaluationAssistantBusiness.cs

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

@ -148,6 +148,13 @@ namespace BBWY.Server.Business
#region 评价助手任务
public void AddOrEditPromotionTask(AddOrEditPromotionTaskRequest request)
{
var shop = venderBusiness.GetShopList(request.ShopId).FirstOrDefault();
if (shop == null)
throw new BusinessException("缺少店铺Id");
var loggerName = $"评价助手-{shop.ShopName}";
nLogManager.GetLogger(loggerName).Info($"发布任务-{JsonConvert.SerializeObject(request)}");
if (string.IsNullOrEmpty(request.MainProductSpu))
throw new BusinessException("缺少主商品SPU");

Loading…
Cancel
Save