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);