更新房间火热值 处理
This commit is contained in:
@@ -117,6 +117,9 @@ class Chat extends Model
|
||||
//直播群成员在离线状态变更
|
||||
// RoomMemberOffline = 1058,
|
||||
|
||||
//清空个人魅力
|
||||
// ClearUserCharm = 1059,
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user