广播消息参数调整

This commit is contained in:
meixiongfeng 2024-01-08 14:54:07 +08:00
parent 2eda12aa3a
commit 47f7c7faae
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ func (this *apiComp) Awaken(session comm.IUserSession, req *pb.HeroAwakenReq) (e
go this.module.AsynHandleSession(session.Clone(), func(session comm.IUserSession) { go this.module.AsynHandleSession(session.Clone(), func(session comm.IUserSession) {
//英雄觉醒 【玩家名称】已将【英雄名称】觉醒至满级! //英雄觉醒 【玩家名称】已将【英雄名称】觉醒至满级!
if user, err := this.module.ModuleUser.GetUser(session.GetUserId()); err == nil { if user, err := this.module.ModuleUser.GetUser(session.GetUserId()); err == nil {
this.chat.SendSysChatToWorld(session, comm.ChatSystem11, _hero, _hero.JuexingLv, 0, user.Name, _hero.HeroID) this.chat.SendSysChatToWorld(session, comm.ChatSystem11, _hero, _hero.JuexingLv, _hero.Star, user.Name, _hero.HeroID)
} else { } else {
this.module.Errorf("no found userdata uid:%s", session.GetUserId()) this.module.Errorf("no found userdata uid:%s", session.GetUserId())
} }

View File

@ -218,7 +218,7 @@ func (this *apiComp) TalentLearn(session comm.IUserSession, req *pb.HeroTalentLe
if this.module.configure.GetHeroTalentMaxLv(heroObj.HeroID) == int32(len(talent.Talent)) { if this.module.configure.GetHeroTalentMaxLv(heroObj.HeroID) == int32(len(talent.Talent)) {
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype128, 1, cfg.Race)) tasks = append(tasks, comm.GetBuriedParam(comm.Rtype128, 1, cfg.Race))
if user, err := this.module.ModuleUser.GetUser(session.GetUserId()); err == nil { if user, err := this.module.ModuleUser.GetUser(session.GetUserId()); err == nil {
this.chat.SendSysChatToWorld(session, comm.ChatSystem10, heroObj, int32(len(talent.Talent)), 0, user.Name, heroObj.HeroID) this.chat.SendSysChatToWorld(session, comm.ChatSystem10, heroObj, heroObj.Star, 0, user.Name, heroObj.HeroID)
} else { } else {
this.module.Errorf("no found userdata uid:%s", session.GetUserId()) this.module.Errorf("no found userdata uid:%s", session.GetUserId())
} }