Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangpeng
dinky
Commits
405f934d
Unverified
Commit
405f934d
authored
Apr 30, 2022
by
aiwenmo
Committed by
GitHub
Apr 30, 2022
Browse files
Options
Browse Files
Download
Plain Diff
[Optimization-459][alert-wechat,web] Optimization wechat Webhook sendMsg title
[Optimization-459][alert-wechat,web] Optimization wechat Webhook sendMsg title
parents
7af982dd
0c6870b2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
8 deletions
+1
-8
WeChatSender.java
...at/src/main/java/com/dlink/alert/wechat/WeChatSender.java
+1
-1
WeChatForm.tsx
dlink-web/src/pages/AlertInstance/components/WeChatForm.tsx
+0
-7
No files found.
dlink-alert/dlink-alert-wechat/src/main/java/com/dlink/alert/wechat/WeChatSender.java
View file @
405f934d
...
@@ -81,7 +81,7 @@ public class WeChatSender {
...
@@ -81,7 +81,7 @@ public class WeChatSender {
String
data
=
""
;
String
data
=
""
;
if
(
sendType
.
equals
(
WeChatType
.
CHAT
.
getValue
()))
{
if
(
sendType
.
equals
(
WeChatType
.
CHAT
.
getValue
()))
{
data
=
markdownByAlert
(
KeyWord
,
content
,
userList
);;
data
=
markdownByAlert
(
title
,
content
,
userList
);;
}
else
{
}
else
{
data
=
markdownByAlert
(
title
,
content
,
userList
);
data
=
markdownByAlert
(
title
,
content
,
userList
);
}
}
...
...
dlink-web/src/pages/AlertInstance/components/WeChatForm.tsx
View file @
405f934d
...
@@ -127,13 +127,6 @@ const WeChatForm: React.FC<AlertInstanceFormProps> = (props) => {
...
@@ -127,13 +127,6 @@ const WeChatForm: React.FC<AlertInstanceFormProps> = (props) => {
>
>
<
Input
placeholder=
"请输入用户"
/>
<
Input
placeholder=
"请输入用户"
/>
</
Form
.
Item
>
</
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
<
Form
.
Item
name=
"agentId"
name=
"agentId"
label=
"代理ID"
label=
"代理ID"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment