新需求-活动需求-盲盒转盘调通盘-巡乐会-调试-优化错误

This commit is contained in:
2025-10-15 10:31:51 +08:00
parent a1866ff95f
commit c3bddf960a

View File

@@ -1248,7 +1248,7 @@ class BlindBoxTurntableGiftDrawWorld extends Model
// 7. 批量处理结果记录
try {
db::startTrans();
if(count($drawn_gifts) != $num){
if(count($drawn_gifts) > $num){
$key = 'xlh_draw_gift_errors_' . date('Y-m-d-H-i-s');
$errorData = [
'user_id' => $user_id,
@@ -1421,14 +1421,14 @@ class BlindBoxTurntableGiftDrawWorld extends Model
$room_user = db::name('user')->where('id',$room_data['user_id'])->field('nickname,avatar')->find();
//锁定礼物
// $text = [
// 'gift_num' => $pan_xlh_num,
// 'FromUserInfo' => $FromUserInfo,
// 'end_time' => $end_time,
// 'text' => $FromUserInfo['nickname'] . ' 在 ' . ' 巡乐会活动中 获得' . $gift_info['gift_name'] . '礼物 x 1'
// ];
//
// model('Chat')->sendMsg(1057, $room_id, $text);
$text = [
'gift_num' => $pan_xlh_num,
'FromUserInfo' => $FromUserInfo,
'end_time' => $end_time,
'text' => $FromUserInfo['nickname'] . ' 在 ' . ' 巡乐会活动中 获得' . $gift_info['gift_name'] . '礼物 x 1'
];
model('Chat')->sendMsg(1057, $room_id, $text);
//推送礼物横幅
$text = $FromUserInfo['nickname'] .' 巡乐会活动中锁定礼物'.$locking_gift['gift_name'].' x ' .$pan_xlh_num ;