Merge pull request #7782 from rainzm/notify/fix2

fix(notify): Replace String() with GetString()
This commit is contained in:
yunion-ci-robot
2020-09-07 15:26:42 +08:00
committed by GitHub

View File

@@ -126,7 +126,7 @@ func RawNotify(recipientId []string, isGroup bool, channel notify.TNotifyChannel
msg.Topic = topic
body, _ := getContent(event, "content", channel, data)
if len(body) == 0 {
body = data.String()
body, _ = data.GetString()
}
msg.Msg = body
// log.Debugf("send notification %s %s", topic, body)