交友 送礼

This commit is contained in:
2025-08-26 15:07:18 +08:00
parent a5b3b84b8d
commit 42aa6e4276

View File

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