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)