优化:Give_Gift 表查询处理

This commit is contained in:
2026-01-13 09:38:47 +08:00
parent a42ae7a94f
commit 8ef22d87a2
4 changed files with 78 additions and 76 deletions

View File

@@ -196,11 +196,10 @@ class RoomPan
$roomtype = Db::name('vs_room')->where(['id' => $room_id])->value('type_id');
if($roomtype == 6){
//推送消息
$hot_value = db::name('vs_give_gift')->where('from_id', $room_id)->where('from',6)
->sum('total_price');
$hot_value = db::name('vs_room')->where('id', $room_id)->value('hot_value');
$text1 = [
'room_id' => $room_id,
'hot_value' => $hot_value * 10,
'hot_value' => $hot_value,
'text' => '房间心动值变化'
];
//聊天室推送系统消息