进入房间 连线推送
This commit is contained in:
@@ -98,6 +98,16 @@ class RoomPit extends Model
|
||||
];
|
||||
model('Tencent')->batchsendmsg($remind_user,json_encode($content));
|
||||
}
|
||||
$reslut = db::name('vs_room_pit_apply')->where(['user_id' => $user_id, 'room_id' => $room_id, 'status' => 0])->delete();
|
||||
if($reslut){
|
||||
$count = db::name('vs_room_pit_apply')->where(['room_id' => $room_id,'status' => 0])->count();
|
||||
//申请上麦推送消息(数据重置)
|
||||
$text = [
|
||||
'text' => '申请上麦',
|
||||
'count' => $count
|
||||
];
|
||||
model('Chat')->sendMsg(1034,$room_id,$text);
|
||||
}
|
||||
return ['code' => 1, 'msg' => '上麦成功', 'data' => null];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user