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: "",