From e233d149ddd661c7f2756fe1829d115e3bc2e063 Mon Sep 17 00:00:00 2001 From: liuxiaobo <1224730913@qq.com> Date: Sat, 14 Jun 2025 13:32:07 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4MakeRpcMsg=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E7=9A=84=E6=B3=9B=E5=9E=8B=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ipb/helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipb/helper.go b/ipb/helper.go index d27a0ab..9e21f41 100644 --- a/ipb/helper.go +++ b/ipb/helper.go @@ -20,7 +20,7 @@ func MakeMsgEx(serviceName string, connId uint32, userId int64, msgId int32, msg return MakeMsg(serviceName, connId, userId, msgId, data) } -func MakeRpcMsg[T any](rpcMsgId string, userId int64, msg *T) *InternalMsg { +func MakeRpcMsg(rpcMsgId string, userId int64, msg any) *InternalMsg { data, _ := json.Marshal(msg) return &InternalMsg{ ServiceName: "",