fix dingtalk notification url

This commit is contained in:
kongfei 2022-08-31 15:45:59 +08:00
parent b82f646636
commit 81fade557b
1 changed files with 2 additions and 2 deletions

View File

@ -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",