perf:钉钉工作通知的内容完全自定义
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user