From f6c2230316404c715f9b489887288a53985fde37 Mon Sep 17 00:00:00 2001 From: Lex Li Date: Mon, 9 Sep 2024 16:41:55 +0800 Subject: [PATCH] Update DingTalkSlasHandlerPlugin.java --- .../plugin/dingtalk/DingTalkSlasHandlerPlugin.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/datavines-notification/datavines-notification-plugins/datavines-notification-plugin-dingtalk/src/main/java/io/datavines/notification/plugin/dingtalk/DingTalkSlasHandlerPlugin.java b/datavines-notification/datavines-notification-plugins/datavines-notification-plugin-dingtalk/src/main/java/io/datavines/notification/plugin/dingtalk/DingTalkSlasHandlerPlugin.java index 5c51e530..92552013 100644 --- a/datavines-notification/datavines-notification-plugins/datavines-notification-plugin-dingtalk/src/main/java/io/datavines/notification/plugin/dingtalk/DingTalkSlasHandlerPlugin.java +++ b/datavines-notification/datavines-notification-plugins/datavines-notification-plugin-dingtalk/src/main/java/io/datavines/notification/plugin/dingtalk/DingTalkSlasHandlerPlugin.java @@ -81,11 +81,15 @@ public String getConfigSenderJson() { InputParam webHook = InputParam.newBuilder("webHook", "webHook") .addValidate(Validate.newBuilder().setRequired(true).build()) .build(); - InputParam keyWord = InputParam.newBuilder("keyWord", "keyWord") + InputParam secret = InputParam.newBuilder("secret", "secret") .addValidate(Validate.newBuilder().setRequired(true).build()) .build(); + InputParam keyWord = InputParam.newBuilder("keyWord", "keyWord") + .addValidate(Validate.newBuilder().setRequired(false).build()) + .build(); paramsList.add(webHook); + paramsList.add(secret); paramsList.add(keyWord); ObjectMapper mapper = new ObjectMapper();