by Robin at 20241017
This commit is contained in:
parent
2df2341e6b
commit
83a984eb17
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue