fix cannot receive dingding alert bug

This commit is contained in:
Yuan Liu
2018-10-19 17:17:38 +08:00
committed by GitHub
parent f640df7a2c
commit 68c460a957

View File

@@ -57,6 +57,9 @@ func (this *DingDingNotifier) Notify(evalContext *alerting.EvalContext) error {
message := evalContext.Rule.Message
picUrl := evalContext.ImagePublicUrl
title := evalContext.GetNotificationTitle()
if message == "" {
message = title
}
bodyJSON, err := simplejson.NewJson([]byte(`{
"msgtype": "link",