交友 送礼
This commit is contained in:
@@ -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();
|
$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');//金币与魅力值转换比
|
$heart_exp = get_system_config_value('coin_charm_exp');//金币与魅力值转换比
|
||||||
$sumPrice = $res['data']['gift_total'] * $heart_exp;
|
$sumPrice = $res['data']['gift_total'] * $heart_exp;
|
||||||
$user_idd = $to_uid;
|
$user_idd = $to_uid;
|
||||||
|
|||||||
Reference in New Issue
Block a user