From db3a30b61d2c631d8dfd0addc615220efed9d835 Mon Sep 17 00:00:00 2001 From: hahwu <31872165+hahwu@users.noreply.github.com> Date: Fri, 6 Mar 2026 15:35:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=BB=E7=BA=BF=E6=B6=88=E6=81=AF=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/game/message_handler.go | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/server/game/message_handler.go b/src/server/game/message_handler.go index 9864229b..98ba2658 100644 --- a/src/server/game/message_handler.go +++ b/src/server/game/message_handler.go @@ -533,35 +533,41 @@ func (p *Player) handle(m *msg.Msg) error { if ok && len(applyUids) > 0 { var faceList []int var name string + var facebookPic []string for _, v := range applyUids { ps := G_GameLogicPtr.GetSimplePlayerByUid(int(v)) if ps != nil { faceList = append(faceList, ps.Face) name = ps.Name + facebookPic = append(facebookPic, ps.FaceBookPic) } } p.PushClientRes(&proto.ResPlayerLougouMsg{ - Name: name, - Face: GoUtil.IntToInt32(faceList), - Count: GoUtil.Int32(info["apply_count"]), + Name: name, + Face: GoUtil.IntToInt32(faceList), + Count: GoUtil.Int32(info["apply_count"]), + FacebookPic: facebookPic, }) } otherUids, ok := info["other_uids"].([]int64) if ok && len(otherUids) > 0 { var faceList []int var name string + var facebookPic []string for _, v := range otherUids { ps := G_GameLogicPtr.GetSimplePlayerByUid(int(v)) if ps != nil { faceList = append(faceList, ps.Face) name = ps.Name + facebookPic = append(facebookPic, ps.FaceBookPic) } } p.PushClientRes(&proto.ResPlayerLougouMsg{ - Type: 1, - Name: name, - Face: GoUtil.IntToInt32(faceList), - Count: GoUtil.Int32(info["other_count"]), + Type: 1, + Name: name, + Face: GoUtil.IntToInt32(faceList), + Count: GoUtil.Int32(info["other_count"]), + FacebookPic: facebookPic, }) } default: