shanji 3 years ago
parent
commit
29ee12e7e8
  1. 4
      BBWY.Server.Business/EarlyWarning/JD/JDStockNumWarningBusiness.cs

4
BBWY.Server.Business/EarlyWarning/JD/JDStockNumWarningBusiness.cs

@ -182,7 +182,7 @@ namespace BBWY.Server.Business
} }
#region 预警检查结果日志 #region 预警检查结果日志
//nLogManager.GetLogger($"库存预警-{shop.ShopName}").Info(""); nLogManager.GetLogger($"库存预警-{shop.ShopName}").Info($"sku {sku}, 7天总销量 {_7dItemTotal}, 7天日均销量 {_7dAvgItemTotal}, 总库存 {totalStockNum}, 预估销售剩余天数 {lessDay}, 是否触发预警 {isWarning}");
#endregion #endregion
if (isWarning) if (isWarning)
@ -223,7 +223,7 @@ namespace BBWY.Server.Business
} }
}, null, HttpMethod.Post); }, null, HttpMethod.Post);
if (result.StatusCode != System.Net.HttpStatusCode.OK) if (result.StatusCode != System.Net.HttpStatusCode.OK)
throw new Exception($"{shop.ShopName} 发送钉钉库存预警失败"); throw new Exception($"{shop.ShopName} 发送钉钉库存预警失败 {result.Content}");
} }
} }
catch (Exception ex) catch (Exception ex)

Loading…
Cancel
Save