优化邮件发送流程
Security Checks / security (push) Waiting to run

This commit is contained in:
xuans committed 2026-09-24 19:42:09 +08:00
1 parent 1a19191097
commit 4d7db55dd9
3 files changed
+16 -6

No files matched your search

+1 -1
View File
@@ -101,7 +101,7 @@ func Send(ctx *context.Context, w http.ResponseWriter, req *http.Request) {
return
}
if len(reqData.To) <= 0 {
if len(reqData.To)+len(reqData.Cc)+len(reqData.Bcc) <= 0 {
response.NewErrorResponse(response.ParamsError, "收件人必填", "收件人必填").FPrint(w)
return
}