Commit 73d07d6d authored by 黎博's avatar 黎博

线上@具体人更新

parent fe756eac
...@@ -112,7 +112,7 @@ public class WebhookServiceImpl implements WebhookService { ...@@ -112,7 +112,7 @@ public class WebhookServiceImpl implements WebhookService {
// BUG更新的时候发送通知 // BUG更新的时候发送通知
if (StringUtils.equals(webhookEvent, "jira:issue_updated")) { if (StringUtils.equals(webhookEvent, "jira:issue_updated")) {
// 钉钉消息title // 钉钉消息title
String title = "研发工单更新"; String title;
String issueUrl = "http://jira2.quantgroup.cn/browse/" + key; String issueUrl = "http://jira2.quantgroup.cn/browse/" + key;
// 钉钉消息内容 // 钉钉消息内容
String content = ""; String content = "";
......
...@@ -52,6 +52,14 @@ public class DingdingUtils { ...@@ -52,6 +52,14 @@ public class DingdingUtils {
return JSON.toJSONString(markdown); return JSON.toJSONString(markdown);
} }
/**
* 构建@具体人的markdown消息,需要在text里加上@手机号,以及at下的atMobiles列表里添加需要被@的手机号
* @param title 消息标题
* @param content 内容
* @param phoneNo 被@的手机号
* @param atAll 是否@所有人
* @return
*/
public static String buildMarkdownMsgAtSpecifyPhone(String title, String content, String phoneNo, boolean atAll) { public static String buildMarkdownMsgAtSpecifyPhone(String title, String content, String phoneNo, boolean atAll) {
Map<String, Object> markdown = new HashMap<>(); Map<String, Object> markdown = new HashMap<>();
Map<String, String> contentMap = new HashMap<>(); Map<String, String> contentMap = new HashMap<>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment