From 7b11279d1068885e2165aecca3d2bd48816b6009 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=92=8A?= Date: Mon, 26 Jan 2026 11:51:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=BF=E9=97=B4=E7=83=AD=E5=BA=A6=E5=8D=A1?= =?UTF-8?q?=E5=BC=80=E5=8F=91-=E7=A4=BC=E7=89=A9=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/Gift.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/application/api/model/Gift.php b/application/api/model/Gift.php index c9d959ed..d79fcea7 100644 --- a/application/api/model/Gift.php +++ b/application/api/model/Gift.php @@ -102,21 +102,18 @@ class Gift extends Model $map['delete_time'] = 0; $where['is_show'] = 1; - if ($label && $label != 99) { - $map['label'] = $label; - } if ($label == 99) { // 拍卖卡关系选择的礼物 $gift_price = get_system_config_value('room_love_auction_cion'); $where['gift_price'] = ['>',$gift_price]; $where['label'] = ['in',[1,5]]; - } - if ($label == 100) {// 哥单礼物 + }elseif ($label == 100) {// 哥单礼物 $gift_price = get_system_config_value('singer_lowest_cion');//歌单最低价格 $where['gift_price'] = ['>',$gift_price]; $where['label'] = ['in',[1,5]]; - } - if($label == 0){// 其他普通礼物 + }elseif($label == 0){// 其他普通礼物 $where['label'] = ['in',[1,5]]; + }else{ + $map['label'] = $label; } $is_open_blind_box_turntable = 1;