From 26d56bdd217cb555f7e252957528dbb14dc53cca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=92=8A?= Date: Fri, 29 Aug 2025 15:00:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A1=E4=B9=90=E4=BC=9A=E6=8A=BD=E5=A5=96?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=8F=90=E4=BA=A4.-=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/model/BlindBoxTurntableGift.php | 23 ++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/application/api/model/BlindBoxTurntableGift.php b/application/api/model/BlindBoxTurntableGift.php index 5893b16..4037c29 100644 --- a/application/api/model/BlindBoxTurntableGift.php +++ b/application/api/model/BlindBoxTurntableGift.php @@ -162,20 +162,17 @@ class BlindBoxTurntableGift extends Model 'all_gift_price' => $value['gift_price'] * $value['count'], 'createtime' => time() ]); - if($is_xlh ==1){ - //推送 - $FromUserInfoNickname = db::name('user')->where(['id'=>$user_id])->value('nickname'); - $ToUserInfoNickname = db::name('user')->where(['id'=>$value['gift_user_id']])->value('nickname'); - $gift_name = db::name('vs_gift')->where(['id'=>$value['gift_id']])->value('gift_name'); - $text_str = $FromUserInfoNickname . ' 送给 ' . $ToUserInfoNickname.' 盲盒转盘礼物得到 ' .$gift_name.' x ' .$value['count']; - $text = [ - 'xlh_data' => $xlh, - 'text' => $text_str - ]; - //聊天室推送系统消息 - model('Chat')->sendMsg(1056,$room_id,$text); - } } + if($is_xlh ==1){ + //推送 + $text = [ + 'xlh_data' => $xlh, + 'text' => "" + ]; + //聊天室推送系统消息 + model('Chat')->sendMsg(1056,$room_id,$text); + } + $reslut = []; $reslut['blind_box_turntable_id'] = $box_turntable_log; $reslut['reslut_list'] = array_values($reslut_data);