1
This commit is contained in:
parent
d8479b1fbe
commit
ac0e4feac3
@ -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 {
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user