shanji 2 years ago
parent
commit
48bfa6fab6
  1. 6
      BBWY.Server.Business/EvaluationAssistant/EvaluationAssistantBusiness.cs
  2. 12
      BBWY.Server.Model/Db/Mds/Shops.cs
  3. 10
      BBWY.Server.Model/Dto/Response/Vender/ShopResponse.cs

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

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

12
BBWY.Server.Model/Db/Mds/Shops.cs

@ -158,6 +158,18 @@ namespace BBWY.Server.Model.Db.Mds
/// </summary>
[Column(StringLength = 100)]
public string SiNanDingDingKey { get; set; }
/// <summary>
/// PJZS钉钉WebHook地址
/// </summary>
[Column(StringLength = 255)]
public string PJZSDingDingWebHook { get; set; }
/// <summary>
/// PJZS钉钉密钥
/// </summary>
[Column(StringLength = 100)]
public string PJZSDingDingKey { get; set; }
}
}

10
BBWY.Server.Model/Dto/Response/Vender/ShopResponse.cs

@ -71,6 +71,16 @@ namespace BBWY.Server.Model.Dto
/// 司南钉钉密钥
/// </summary>
public string SiNanDingDingKey { get; set; }
/// <summary>
/// PJZS钉钉WebHook地址
/// </summary>
public string PJZSDingDingWebHook { get; set; }
/// <summary>
/// PJZS钉钉密钥
/// </summary>
public string PJZSDingDingKey { get; set; }
}
public class PurchaseAccountResponse

Loading…
Cancel
Save