更新房间火热值 处理

This commit is contained in:
2025-09-09 17:59:10 +08:00
parent 2034849c00
commit 33353e938d
3 changed files with 16 additions and 7 deletions

View File

@@ -117,6 +117,9 @@ class Chat extends Model
//直播群成员在离线状态变更
// RoomMemberOffline = 1058,
//清空个人魅力
// ClearUserCharm = 1059,

View File

@@ -1715,12 +1715,17 @@ class Room extends Model
}
}
}
//发送消息
$text['text'] = '清除魅力成功';
model('Chat')->sendMsg(1021,$room_id,$text);
}else{
$dd = db::name('vs_room_user_charm')->where(['room_id' => $room_id,'user_id' => $uid])->update(['charm' => 0,'clear_time' => time()]);
//发送消息
$text['text'] = '清除魅力成功';
$text['user_id'] = $uid;
model('Chat')->sendMsg(1059,$room_id,$text);
}
//发送消息
$text['text'] = '清除魅力成功';
model('Chat')->sendMsg(1021,$room_id,$text);
//1-禁麦位2-清空消息3-清空魅力值4-加入黑名单5-踢出房间6-关闭麦克风7-申请上麦8-同意上麦9-拒绝上麦10-点歌11-开启PK',
model('Room')->room_operation_record($user_id,$room_id,3);
return ['code' => 1, 'msg' => '成功', 'data' => null];