添加邮件发送错误信息

This commit is contained in:
bjd 2021-01-12 19:43:41 +08:00
parent 3ebb669558
commit 73d1edd62f
1 changed files with 5 additions and 1 deletions

View File

@ -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)