Commit 04adee90 authored by 施翔轲's avatar 施翔轲

钉钉机器人默认发消息不@所有人

parent 68f85d66
......@@ -5,7 +5,6 @@ import cn.hutool.json.JSONUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.util.CollectionUtils;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
......@@ -39,7 +38,7 @@ public class DingTalkUtil {
* @param content 通知内容
*/
public static void sendDingTalkMsg(String content) {
sendDingTalkMsg(true, null, content);
sendDingTalkMsg(false, null, content);
}
/**
......@@ -77,9 +76,4 @@ public class DingTalkUtil {
log.error("发送钉钉消息异常", e);
}
}
public static void main(String[] args) {
// sendDingTalkMsg("服务通知:测试消息");
sendDingTalkMsg(Collections.singletonList("4008123123"), "央企数字化经营系统如期上线::xxxxxx");
}
}
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