1
This commit is contained in:
parent
ee9b02a362
commit
6f187c3f55
@ -4,6 +4,7 @@ import (
|
||||
"q5"
|
||||
"main/constant"
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
|
||||
type Mail struct {
|
||||
@ -19,6 +20,14 @@ func (this *Mail) GetContent() string {
|
||||
return this.content
|
||||
}
|
||||
|
||||
func (this *Mail) ReplaceContent(kv map[string]string) string {
|
||||
result := this.content
|
||||
for k, v := range kv {
|
||||
result = strings.ReplaceAll(result, k, v)
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
type MailTable struct {
|
||||
nameHash *q5.ConcurrentMap[string, *Mail]
|
||||
}
|
||||
|
@ -68,10 +68,6 @@ func (this* hero) internalSendMail(dbIdx int64, accountAddress string, mailName
|
||||
return true
|
||||
}
|
||||
|
||||
func (this *hero) t(content string) string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (this *hero) getMailConfig(mailName string) *jccommon.MailConfig {
|
||||
if v, ok := this.mailCfgHash.Load(mailName); ok {
|
||||
return *v
|
||||
|
Loading…
x
Reference in New Issue
Block a user