优化:Give_Gift 表查询处理
This commit is contained in:
@@ -182,11 +182,10 @@ class BlindBoxTurntableGift extends Model
|
||||
$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' => '房间心动值变化'
|
||||
];
|
||||
//聊天室推送系统消息
|
||||
|
||||
Reference in New Issue
Block a user