Commit 59bf3637 authored by chenweijian's avatar chenweijian

退房

parent 88fb3302
......@@ -595,13 +595,13 @@ func SendH5GameUnMute(userId uint64) error {
// 发送退房通知
func SendQuitRoom(userId uint64) error {
msg := &userProxy.DiamondChange{}
msg := &userProxy.QuitRoom{}
if buffer, err := proto.Marshal(msg); err == nil {
rspUids, err := multicast([]uint64{userId}, MsgTypeQuitRoom, buffer)
// 记录socket
// 有err||uid不在线才入库
if err != nil || len(rspUids) > 0 {
go func(userId uint64, msg *userProxy.DiamondChange, rspUids []uint64, err error) {
go func(userId uint64, msg *userProxy.QuitRoom, rspUids []uint64, err error) {
buf, _ := json.Marshal(msg)
AddRpcLog(MsgTypeQuitRoom, userId, string(buf[:]), rspUids, err)
}(userId, msg, rspUids, err)
......
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