From 9bb40d8a783ea6d4ae8358674d2d19c3370f2269 Mon Sep 17 00:00:00 2001 From: iyear Date: Wed, 8 Apr 2020 13:51:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8C=96=E9=94=99=E8=AF=AF=E5=8F=8D?= =?UTF-8?q?=E9=A6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- control.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/control.go b/control.go index 5685236..c3b6f1d 100644 --- a/control.go +++ b/control.go @@ -112,13 +112,13 @@ func SignTask() { se := u.msId + " ( @" + chat.Username + " )" if err != nil { logger.Println(u.msId+" ", err) - bot.Send(chat, pre+err.Error(), tmpBtn) + bot.Send(chat, pre+gjson.Get(err.Error(), "error").String(), tmpBtn) SignErr = append(SignErr, se) continue } if ok, err := OutLookGetMails(access); !ok { logger.Println(u.msId+" ", err) - bot.Send(chat, pre+err.Error(), tmpBtn) + bot.Send(chat, pre+gjson.Get(err.Error(), "error").String(), tmpBtn) SignErr = append(SignErr, se) continue }