Commit 68ca5359 authored by chenweijian's avatar chenweijian

退房

parent b647c258
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment