From 8a0faa994619494118237067cd957e44aaf09cf7 Mon Sep 17 00:00:00 2001 From: RogerYuQian <348339092@qq.com> Date: Thu, 3 May 2018 15:32:09 +0800 Subject: [PATCH] fix wechat issue (#1353) (#1356) --- notify/impl.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/notify/impl.go b/notify/impl.go index 5a5c838f..a5d212f6 100644 --- a/notify/impl.go +++ b/notify/impl.go @@ -924,10 +924,10 @@ func (n *Wechat) Notify(ctx context.Context, as ...*types.Alert) (bool, error) { Text: weChatMessageContent{ Content: tmpl(n.conf.Message), }, - ToUser: n.conf.ToUser, - ToParty: n.conf.ToParty, - Totag: n.conf.ToTag, - AgentID: n.conf.AgentID, + ToUser: tmpl(n.conf.ToUser), + ToParty: tmpl(n.conf.ToParty), + Totag: tmpl(n.conf.ToTag), + AgentID: tmpl(n.conf.AgentID), Type: "text", Safe: "0", }