交友相关 直播间送礼

This commit is contained in:
2025-08-18 16:33:01 +08:00
parent 3e4fe2b864
commit 2c71d3eea8
3 changed files with 457 additions and 5 deletions

View File

@@ -431,6 +431,14 @@ class GiveGift extends Model
];
//聊天室推送系统消息
model('Chat')->sendMsg(1028,$from_id,$text1);
//电影房推送结束时间点
$text2 = [
'room_id' => $from_id,
'end_time' => time() + 60 * 60 * 24 * 7,
'text' => '房间结束时间点'
];
model('Chat')->sendMsg(1042,$from_id,$text2);
}else{
if($gift_inf['is_public_screen'] == 1){
//推送礼物横幅
@@ -508,7 +516,7 @@ class GiveGift extends Model
Db::name('vs_room')->where(['id'=>$from_id,'apply_status'=>2])->setInc('today_hot_value',$gift_totalaa);
Db::commit();
return ['code' => 1, 'msg' => '送礼成功', 'data' => null];
return ['code' => 1, 'msg' => '送礼成功', 'data' => ['gift_total' => $gift_total]];
}
//送礼特效