From 7036b400ea383ea8a41a9d77062a78b847a33825 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Mon, 8 Jan 2024 14:19:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B1=E9=B8=A3=E6=B6=88=E6=81=AF=E5=B9=BF?= =?UTF-8?q?=E6=92=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hero/api_talentlearn.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/hero/api_talentlearn.go b/modules/hero/api_talentlearn.go index 52f54a1a5..b2ad7afa0 100644 --- a/modules/hero/api_talentlearn.go +++ b/modules/hero/api_talentlearn.go @@ -217,6 +217,11 @@ func (this *apiComp) TalentLearn(session comm.IUserSession, req *pb.HeroTalentLe // 满回响 if this.module.configure.GetHeroTalentMaxLv(heroObj.HeroID) == int32(len(talent.Talent)) { tasks = append(tasks, comm.GetBuriedParam(comm.Rtype128, 1, cfg.Race)) + 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) + } else { + this.module.Errorf("no found userdata uid:%s", session.GetUserId()) + } } tasks = append(tasks, comm.GetBuriedParam(comm.Rtype199, 1)) go this.module.AsynHandleSession(session.Clone(), func(session comm.IUserSession) {