From f040f089aa7bd6f4bb642655f3d91615fe2aa1f6 Mon Sep 17 00:00:00 2001 From: r0nn Date: Fri, 28 Apr 2023 19:40:49 +0800 Subject: [PATCH] fix wechat notifier response field name (#3330) Signed-off-by: gotjosh --- notify/wechat/wechat.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notify/wechat/wechat.go b/notify/wechat/wechat.go index 4ac101a4..2e3b2c29 100644 --- a/notify/wechat/wechat.go +++ b/notify/wechat/wechat.go @@ -66,8 +66,8 @@ type weChatMessageContent struct { } type weChatResponse struct { - Code int `json:"code"` - Error string `json:"error"` + Code int `json:"errcode"` + Error string `json:"errmsg"` } // New returns a new Wechat notifier.