This commit is contained in:
parent
ee3a73d695
commit
605eda4830
|
@ -4060,8 +4060,8 @@ func (s *Service) ApiSendRavenIQTestResultAsEmail(ctx *gin.Context, req *emailpr
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
go func() {
|
go func(eml *dbstruct.Email, emailInfoCfg apollostruct.EmailInfoConfig) {
|
||||||
err = email.SendRavenIQTestResult(req.Email, emailInfoCfg.Host, emailInfoCfg.Port, emailInfoCfg.Address, emailInfoCfg.Password)
|
err = email.SendRavenIQTestResult(eml, emailInfoCfg.Host, emailInfoCfg.Port, emailInfoCfg.Address, emailInfoCfg.Password)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logger.Error("SendRavenIQTestResult fail, req: %v, err: %v", util.ToJson(req), err)
|
logger.Error("SendRavenIQTestResult fail, req: %v, err: %v", util.ToJson(req), err)
|
||||||
// 更新状态为失败
|
// 更新状态为失败
|
||||||
|
@ -4080,7 +4080,7 @@ func (s *Service) ApiSendRavenIQTestResultAsEmail(ctx *gin.Context, req *emailpr
|
||||||
Status: goproto.Int64(consts.Email_Success),
|
Status: goproto.Int64(consts.Email_Success),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}()
|
}(req.Email, emailInfoCfg)
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue