From 03eca57bb5fd47fd620108203ea906817619b51b Mon Sep 17 00:00:00 2001 From: hahwu <31872165+hahwu@users.noreply.github.com> Date: Thu, 11 Dec 2025 16:29:03 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=8C=AB=E8=8D=89=E5=A4=A7=E4=BD=9C?= =?UTF-8?q?=E6=88=98=E3=80=91-=E4=BF=AE=E6=94=B9=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/game/RegisterNetworkFunc.go | 1 + src/server/msg/Gameapi.pb.go | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/server/game/RegisterNetworkFunc.go b/src/server/game/RegisterNetworkFunc.go index 5e8a5256..9b8be192 100644 --- a/src/server/game/RegisterNetworkFunc.go +++ b/src/server/game/RegisterNetworkFunc.go @@ -5812,6 +5812,7 @@ func ReqFriendReplyHandle(player *Player, buf []byte) error { player.PushClientRes(&msg.ResFriendReplyHandle{ Code: msg.RES_CODE_SUCCESS, LogId: req.LogId, + Type: req.Type, }) return nil } diff --git a/src/server/msg/Gameapi.pb.go b/src/server/msg/Gameapi.pb.go index 1b0ec484..76a0cddb 100644 --- a/src/server/msg/Gameapi.pb.go +++ b/src/server/msg/Gameapi.pb.go @@ -15320,6 +15320,7 @@ type ResFriendReplyHandle struct { Code RES_CODE `protobuf:"varint,1,opt,name=Code,proto3,enum=tutorial.RES_CODE" json:"Code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=Msg,proto3" json:"Msg,omitempty"` LogId int32 `protobuf:"varint,3,opt,name=LogId,proto3" json:"LogId,omitempty"` // 时间线id + Type int32 `protobuf:"varint,4,opt,name=Type,proto3" json:"Type,omitempty"` // 回复类型 1:处理 2:删除 3:查看 unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } @@ -15375,6 +15376,13 @@ func (x *ResFriendReplyHandle) GetLogId() int32 { return 0 } +func (x *ResFriendReplyHandle) GetType() int32 { + if x != nil { + return x.Type + } + return 0 +} + type ResFriendBubble struct { state protoimpl.MessageState `protogen:"open.v1"` Bubble []*FriendBubbleInfo `protobuf:"bytes,1,rep,name=Bubble,proto3" json:"Bubble,omitempty"` // 气泡 @@ -28582,11 +28590,12 @@ const file_proto_Gameapi_proto_rawDesc = "" + "\x14ReqFriendReplyHandle\x12\x14\n" + "\x05LogId\x18\x01 \x01(\x05R\x05LogId\x12\x14\n" + "\x05Param\x18\x02 \x01(\tR\x05Param\x12\x12\n" + - "\x04Type\x18\x03 \x01(\x05R\x04Type\"f\n" + + "\x04Type\x18\x03 \x01(\x05R\x04Type\"z\n" + "\x14ResFriendReplyHandle\x12&\n" + "\x04Code\x18\x01 \x01(\x0e2\x12.tutorial.RES_CODER\x04Code\x12\x10\n" + "\x03Msg\x18\x02 \x01(\tR\x03Msg\x12\x14\n" + - "\x05LogId\x18\x03 \x01(\x05R\x05LogId\"E\n" + + "\x05LogId\x18\x03 \x01(\x05R\x05LogId\x12\x12\n" + + "\x04Type\x18\x04 \x01(\x05R\x04Type\"E\n" + "\x0fResFriendBubble\x122\n" + "\x06Bubble\x18\x01 \x03(\v2\x1a.tutorial.FriendBubbleInfoR\x06Bubble\"#\n" + "\x11ReqFriendTLUpvote\x12\x0e\n" +