Commit b5cc991f authored by zhu-mingye's avatar zhu-mingye

fix wechat webhook sendMsg

parent 7af982dd
......@@ -19,5 +19,7 @@ public class AlertInstance extends SuperEntity {
private String type;
private String name;
private String params;
}
......@@ -81,7 +81,7 @@ public class WeChatSender {
String data ="";
if (sendType.equals(WeChatType.CHAT.getValue())) {
data = markdownByAlert(KeyWord, content ,userList);;
data = markdownByAlert(title, content ,userList);;
}else{
data = markdownByAlert(title, content, userList);
}
......
......@@ -127,13 +127,6 @@ const WeChatForm: React.FC<AlertInstanceFormProps> = (props) => {
>
<Input placeholder="请输入用户"/>
</Form.Item>
<Form.Item
name="userSendMsg"
label="发送信息"
rules={[{required: true, message: '请输入发送信息!'}]}
>
<Input defaultValue='{"touser":"{toUser}","agentid":{agentId},"msgtype":"{showType}","{showType}":{"content":"{msg}"}}' disabled placeholder="请输入发送信息"/>
</Form.Item>
<Form.Item
name="agentId"
label="代理ID"
......
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