This commit is contained in:
aozhiwei 2024-06-24 16:50:18 +08:00
parent d8479b1fbe
commit ac0e4feac3
2 changed files with 2 additions and 3 deletions

View File

@ -73,7 +73,7 @@ func (this *MailTable) loadMail(mailName string) {
this.nameHash.Store(mailName, p) this.nameHash.Store(mailName, p)
} }
func (this *MailTable) GetMailByName(mailName string) *Mail { func (this *MailTable) GetByName(mailName string) *Mail {
if v, ok := this.nameHash.Load(mailName); ok { if v, ok := this.nameHash.Load(mailName); ok {
return *v return *v
} else { } else {

View File

@ -44,11 +44,10 @@ func (this* hero) internalSendMail(dbIdx int64, accountAddress string, mailName
if accountId == "" { if accountId == "" {
return true return true
} }
/*
mailMeta := mt.Table.Mail.GetByName(mailName) mailMeta := mt.Table.Mail.GetByName(mailName)
if mailMeta == nil { if mailMeta == nil {
return true return true
}*/ }
mailCfg := this.getMailConfig(mailName) mailCfg := this.getMailConfig(mailName)
if mailCfg == nil { if mailCfg == nil {
return true return true