|
|
@ -563,7 +563,7 @@ namespace BBWY.Server.Business |
|
|
|
fsql.Update<PromotionTask>(id).Set(pt => pt.Status, Enums.PromitionTaskStatus.已停止) |
|
|
|
.Set(pt => pt.ErrorMsg, errorMsg) |
|
|
|
.ExecuteAffrows(); |
|
|
|
Error(shop, $"评价助手-{shop.ShopName}", $"开始任务延迟任务-任务Id {request.Id}", new Exception(errorMsg)); |
|
|
|
Error(shop, $"评价助手-{shop.ShopName}", $"开始任务-延迟任务-任务Id {request.Id}", new Exception(errorMsg)); |
|
|
|
}); |
|
|
|
if (httpApiResult.StatusCode != System.Net.HttpStatusCode.OK) |
|
|
|
{ |
|
|
@ -950,13 +950,13 @@ namespace BBWY.Server.Business |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void Error(ShopResponse shop, string loggerName, string message, Exception ex) |
|
|
|
{ |
|
|
|
nLogManager.GetLogger(loggerName).Error(ex, message); |
|
|
|
|
|
|
|
//send dingding
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(shop.PJZSDingDingKey) && !string.IsNullOrEmpty(shop.PJZSDingDingWebHook)) |
|
|
|
dingDingBusiness.SendDingDingBotMessage(shop.PJZSDingDingKey, shop.PJZSDingDingWebHook, $"评价助手\n{shop.ShopName}\n{message}\n{ex.Message}"); |
|
|
|
} |
|
|
|
#endregion
|
|
|
|
} |
|
|
|