From 73d1edd62f35e9fbc23a03476ae12eafb4630852 Mon Sep 17 00:00:00 2001 From: bjd Date: Tue, 12 Jan 2021 19:43:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=82=AE=E4=BB=B6=E5=8F=91?= =?UTF-8?q?=E9=80=81=E9=94=99=E8=AF=AF=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/api_user.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/admin/api_user.go b/admin/api_user.go index 6e3db9e..718edba 100644 --- a/admin/api_user.go +++ b/admin/api_user.go @@ -100,7 +100,11 @@ func UserSet(w http.ResponseWriter, r *http.Request) { // 发送邮件 if data.SendEmail { - userAccountMail(data) + err = userAccountMail(data) + if err != nil { + RespError(w, RespInternalErr, err) + return + } } RespSucess(w, nil)