定版之后bug修改-获取用户当前房间的巡乐会信息接口提交

This commit is contained in:
2025-09-22 11:33:09 +08:00
parent e53494c0f5
commit 63cb3a1c93
2 changed files with 45 additions and 2 deletions

View File

@@ -1342,7 +1342,7 @@ class BlindBoxTurntableGiftDraw extends Model
// 8. 处理推送消息
if ($is_zhong_jiang == 1) {
$this->handlePrizeNotification($user_id,$gift_id, $room_id, $pan_xlh_num, $end_time, $room['room_name']);
$this->handlePrizeNotification($user_id,$gift_id, $room_id, $pan_xlh_num, $end_time, $room['room_name'],$ext['locking_condition']['locking_gift_id']);
}
// 9. 构建返回结果
@@ -1442,10 +1442,12 @@ class BlindBoxTurntableGiftDraw extends Model
/**
* 巡乐会抽奖-处理中奖通知
*/
private function handlePrizeNotification($user_id,$gift_id, $room_id, $pan_xlh_num, $end_time, $room_name)
private function handlePrizeNotification($user_id,$gift_id, $room_id, $pan_xlh_num, $end_time, $room_name,$locking_gift_id)
{
$FromUserInfo = db::name('user')->field('nickname,avatar')->where(['id' => $user_id])->find();
$gift_info = db::name('vs_gift')->field('gift_name')->where(['gid' => $gift_id])->find();
$locking_gift = db::name('vs_gift')->field('gift_name')->where(['gid' => $locking_gift_id])->find();
//锁定礼物
$text = [
'gift_num' => $pan_xlh_num,
@@ -1455,6 +1457,16 @@ class BlindBoxTurntableGiftDraw extends Model
];
model('Chat')->sendMsg(1057, $room_id, $text);
//推送礼物横幅
$text = $FromUserInfo['nickname'] . ' 用户在 ' . $room_name.' 房间巡乐会 锁定 礼物' .$locking_gift.' 当前奖池礼物 x ' .$pan_xlh_num;
$push = new Push(0, $room_id);
$text_list_new = [
'text' => $text,
'room_id' => $room_id,
'from_type' => 1
];
$push->xunlehui($text_list_new);
}
/**