From a25e943818e950f76ae97499a5d11923f95164dc Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Sat, 14 Jan 2023 14:34:22 +0800 Subject: [PATCH] =?UTF-8?q?bingo=20=E6=BB=A1=E8=8B=B1=E9=9B=84=20=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E6=B2=A1=E5=85=A5=E5=BA=93=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hero/module.go | 1 + modules/privilege/module.go | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/hero/module.go b/modules/hero/module.go index 92125aad2..f4d708b36 100644 --- a/modules/hero/module.go +++ b/modules/hero/module.go @@ -726,6 +726,7 @@ func (this *Hero) GetAllMaxHero(session comm.IUserSession) (code pb.ErrorCode) { "sameCount": 1, "normalSkill": hero.NormalSkill, "talentProperty": hero.TalentProperty, + "property": hero.Property, } // 保存数据 diff --git a/modules/privilege/module.go b/modules/privilege/module.go index e9e4e5e25..d1332ea84 100644 --- a/modules/privilege/module.go +++ b/modules/privilege/module.go @@ -317,13 +317,13 @@ func (this *Privilege) SendDailyMail(session comm.IUserSession, cId string, coun N: v.N, }) } - - if pType == 1 { - this.mail.SendMailByCid(session, comm.Yueka_1, res) - } else if pType == 2 { - this.mail.SendMailByCid(session, comm.Yueka_1, res) + for i := 0; i < int(count); i++ { + if pType == 1 { + this.mail.SendMailByCid(session, comm.Yueka_1, res) + } else if pType == 2 { + this.mail.SendMailByCid(session, comm.Yueka_1, res) + } } - } func (this *Privilege) CheckAllPrivilege(session comm.IUserSession) map[int32]*pb.PrivilegeList {