fix dingtalk notification url
This commit is contained in:
parent
b82f646636
commit
81fade557b
|
@ -50,8 +50,8 @@ func SendDingtalk(message DingtalkMessage) {
|
|||
}
|
||||
|
||||
ur := "https://oapi.dingtalk.com/robot/send?access_token=" + u.Path
|
||||
if strings.HasPrefix(u.Path, "https://") {
|
||||
ur = u.Path
|
||||
if strings.HasPrefix(message.Tokens[i], "https://") {
|
||||
ur = message.Tokens[i]
|
||||
}
|
||||
body := dingtalk{
|
||||
Msgtype: "markdown",
|
||||
|
|
Loading…
Reference in New Issue