From 42aa6e427605b51198375f883275e2f5a426b043 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, 26 Aug 2025 15:07:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A4=E5=8F=8B=20=E9=80=81=E7=A4=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/Friend.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/api/model/Friend.php b/application/api/model/Friend.php index 8d4bc0c..e83a129 100644 --- a/application/api/model/Friend.php +++ b/application/api/model/Friend.php @@ -288,7 +288,7 @@ class Friend extends Model //送礼成功后续操作 //查看当前时间是否在交友表的创建时间和结束时间段内 用来区分是否要拉取心动值高的用户上麦 $friend = db::name('vs_user_friending')->where(['room_id' => $room_id,'status' => 1])->order('id desc')->find(); - if(time() >= $friend['create_time'] && time() <= $friend['end_time']){ + if($friend && time() >= $friend['create_time'] && time() <= $friend['end_time']){ $heart_exp = get_system_config_value('coin_charm_exp');//金币与魅力值转换比 $sumPrice = $res['data']['gift_total'] * $heart_exp; $user_idd = $to_uid;