perf:钉钉工作通知的内容完全自定义

This commit is contained in:
曾文豪
2024-02-28 09:36:21 +08:00
parent 3758826987
commit 75d052bd0c

View File

@@ -268,7 +268,7 @@ public class PlatformDingConfig {
* @param userIds
* @return
*/
public DingResponse<String> messageNotification(String service, String title, String content, String actionUrl, List<String> userIds) {
public DingResponse<String> messageNotification(String service, String title, String markdown, String actionUrl, List<String> userIds) {
if (CollUtil.isEmpty(userIds)) {
return null;
@@ -278,7 +278,7 @@ public class PlatformDingConfig {
JSONObject actionCard = new JSONObject();
actionCard.set("title", title);
actionCard.set("markdown", "### " + title + "\n" + content);
actionCard.set("markdown", markdown);
actionCard.set("single_title", "点击查看");
actionCard.set("single_url", actionUrl);