Browse Source

评价助手完成任务通知使用NOTASK消息类型

master
shanji 1 year ago
parent
commit
cbb95efa80
  1. 4
      BBWY.Server.Business/EvaluationAssistant/EvaluationAssistantBusiness.cs
  2. 5
      BBWY.Server.Business/QYMessageCenterBusiness.cs

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

@ -734,7 +734,7 @@ namespace BBWY.Server.Business
try
{
qyMessageCenterBusiness.SendMessage(shop.TeamId, shop.TeamId, shop.ShopId, "PJZS", shop.ShopName, "任务列表无后续任务,为避免空档请及时设置后续任务", "PZJS API", string.Empty);
qyMessageCenterBusiness.SendMessage(shop.TeamId, shop.TeamId, shop.ShopId, "PJZS", shop.ShopName, "任务列表无后续任务,为避免空档请及时设置后续任务", "NOTASK", "PZJS API", string.Empty);
}
catch { }
}
@ -1219,7 +1219,7 @@ namespace BBWY.Server.Business
{
//dingDingBusiness.SendDingDingBotMessage(shop.PJZSDingDingKey, shop.PJZSDingDingWebHook, $"评价助手\n店铺:{shop.ShopName}\n任务全部执行完成,请及时设置后续任务!!");
qyMessageCenterBusiness.SendMessage(shop.TeamId, shop.TeamId, shop.ShopId, "PZJS", shop.ShopName, "任务全部执行完成,请及时设置后续任务", "PJZS API", string.Empty);
qyMessageCenterBusiness.SendMessage(shop.TeamId, shop.TeamId, shop.ShopId, "PZJS", shop.ShopName, "任务全部执行完成,请及时设置后续任务", "NOTASK", "PJZS API", string.Empty);
}
catch { }
}

5
BBWY.Server.Business/QYMessageCenterBusiness.cs

@ -19,6 +19,11 @@ namespace BBWY.Server.Business
SendMessage(channel, teamId, shopId, appCode, title, content, string.Empty, senderId, recevierId, false);
}
public void SendMessage(string channel, string teamId, string shopId, string appCode, string title, string content, string customTypeCode, string senderId, string recevierId)
{
SendMessage(channel, teamId, shopId, appCode, title, content, customTypeCode, senderId, recevierId, false);
}
public void SendMessage(string channel, string teamId, string shopId, string appCode, string title, object jsonContent, string customTypeCode, string senderId, string recevierId)
{
SendMessage(channel, teamId, shopId, appCode, title, JsonConvert.SerializeObject(jsonContent), customTypeCode, senderId, recevierId, true);

Loading…
Cancel
Save