From 83a984eb17d28b660d76b2ccaef92da53bf31f83 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Thu, 17 Oct 2024 19:52:33 +0800 Subject: [PATCH] by Robin at 20241017 --- app/mix/service/apiservice.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/mix/service/apiservice.go b/app/mix/service/apiservice.go index 63312413..42804108 100644 --- a/app/mix/service/apiservice.go +++ b/app/mix/service/apiservice.go @@ -4276,8 +4276,8 @@ func (s *Service) ApiSendRavenIQTestResultAsEmail(ctx *gin.Context, req *emailpr return } - go func() { - err = email.SendRavenIQTestResult(req.Email, emailInfoCfg.Host, emailInfoCfg.Port, emailInfoCfg.Address, emailInfoCfg.Password) + go func(eml *dbstruct.Email, emailInfoCfg apollostruct.EmailInfoConfig) { + err = email.SendRavenIQTestResult(eml, emailInfoCfg.Host, emailInfoCfg.Port, emailInfoCfg.Address, emailInfoCfg.Password) if err != nil { logger.Error("SendRavenIQTestResult fail, req: %v, err: %v", util.ToJson(req), err) // 更新状态为失败 @@ -4296,7 +4296,7 @@ func (s *Service) ApiSendRavenIQTestResultAsEmail(ctx *gin.Context, req *emailpr Status: goproto.Int64(consts.Email_Success), }, }) - }() + }(req.Email, emailInfoCfg) return }