From a1e676e6e37705abdbcfb60e6d4c8bd9b8ade51d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Tue, 20 Jan 2026 19:25:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A4=E5=8F=8B=E6=88=BF=E9=80=81=E5=85=A8?= =?UTF-8?q?=E9=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/SendGift.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/api/model/SendGift.php b/application/api/model/SendGift.php index 7e216cc5..3b9dc348 100644 --- a/application/api/model/SendGift.php +++ b/application/api/model/SendGift.php @@ -1203,7 +1203,8 @@ class SendGift extends Model $reslut = [ 'data' => ['gift_total' => $gift_totalaa,'gift_user_data' =>$gift_user_data,] ]; - model('api/Friend')->room_give_gift($uid, $to_array,$room_id,$reslut,$heart_id); + $to_users = implode(',',$to_array);//获取所有接收用户id + model('api/Friend')->room_give_gift($uid, $to_users,$room_id,$reslut,$heart_id); } //gift_total:收礼人收礼金币总和,交友和参与拍卖使用;cp_type:cp交友使用,gift_user_data:cp交友使用, return ['code' => 1, 'msg' => '送礼成功', 'data' => ['gift_total' => $room_hotvalue,'gift_user_data' =>null,'cp_type' => null]];