邮件优化

This commit is contained in:
hahwu 2025-04-02 14:41:25 +08:00
parent e8264aa348
commit c430dd8cae
2 changed files with 2 additions and 1 deletions

View File

@ -238,7 +238,7 @@ func handle(p *Player, m *msg.Msg) error {
BaseMod := p.PlayMod.getBaseMod()
mt, mc := mailCfg.GetChargeSendMail(BaseMod.GetLang(), PlayerSimpleData.Name)
Items := ChargeItem(p, C.ChargeId)
MailId := MailMod.Send(mt, mc, Items, mail.MAIL_TYPE_NORMAL)
MailId := MailMod.Send(mt, mc, Items, mail.MAIL_TYPE_GIFT)
p.AddLog(m.From, friend.LOG_TYPE_CHARGE_SEND, fmt.Sprintf("%d", MailId))
p.PushClientRes(MailMod.BackData())
case msg.HANDLE_TYPE_CHARGE_RECEIVE: // 收到好友的感谢信

View File

@ -22,6 +22,7 @@ const (
MAIL_TYPE_NORMAL = 1
MAIL_TYPE_FESTIVAL = 2
MAIL_TYPE_GIFT = 3
)
type MailInfo struct {