交友相关 直播间送礼

This commit is contained in:
2025-08-16 19:04:30 +08:00
parent 6a4b34e0cd
commit b39a3c7d7b
3 changed files with 6 additions and 5 deletions

View File

@@ -1213,7 +1213,7 @@ class Room extends Model
//房间送礼
public function room_gift($uid, $to_uid, $gift_id, $gift_num,$type, $room_id, $pit_number)
public function room_gift($uid, $to_uid, $gift_id, $gift_num,$type, $room_id, $pit_number, $heart_id)
{
$label_type = model('Room')->get_room_label($room_id);
if($label_type['code'] != 1){
@@ -1248,7 +1248,7 @@ class Room extends Model
}elseif($label_type['data']['type_id'] == 6){
return model('GiveGift')->give_gift($uid, $to_uid, $gift_id, $gift_num,6,$type, $room_id,$pit_number);
}elseif($label_type['data']['type_id'] == 7){
return model('Friend')->room_give_gift($uid, $to_uid, $gift_id, $gift_num,2,$type, $room_id,$pit_number);
return model('Friend')->room_give_gift($uid, $to_uid, $gift_id, $gift_num,2,$type, $room_id,$pit_number,$heart_id);
}else{
$res = model('GiveGift')->give_gift($uid, $to_uid, $gift_id, $gift_num,2,$type, $room_id,$pit_number);
return $res;