|
@ -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) |
|
|