From 68ca535956f2d2adacc8a4f32cac8b11756ac5d1 Mon Sep 17 00:00:00 2001 From: chenweijian <820961417@qq.com> Date: Tue, 15 Aug 2023 16:22:36 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=80=E6=88=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rpc/user_center_func.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rpc/user_center_func.go b/rpc/user_center_func.go index 3f02639..6c40596 100644 --- a/rpc/user_center_func.go +++ b/rpc/user_center_func.go @@ -593,9 +593,9 @@ func SendH5GameUnMute(userId uint64) error { return nil } -// 发送退房通知 -func SendQuitRoom(userId uint64) error { - msg := &userProxy.QuitRoom{} +// 发送退房通知 原因1.被拉黑;2.被踢出 +func SendQuitRoom(userId uint64, reason uint32) error { + msg := &userProxy.QuitRoom{Reason: reason} if buffer, err := proto.Marshal(msg); err == nil { rspUids, err := multicast([]uint64{userId}, MsgTypeQuitRoom, buffer) // 记录socket -- 2.22.0