房间火热值修改
This commit is contained in:
@@ -531,8 +531,7 @@ class GiveGift extends Model
|
||||
|
||||
//增加房间火热值hot_value
|
||||
$gift_totalaa = $gift_total * get_system_config_value('coin_charm_exp');
|
||||
//先记录在日志表里 再计划任务写到room表里
|
||||
db::name('vs_room_hot_value_log')->insert( ['room_id' => $from_id, 'hot_value' => $gift_totalaa, 'createtime' => time()]);
|
||||
db::name('vs_room')->where(['id' => $from_id])->inc('hot_value', $gift_totalaa)->inc('today_hot_value', $gift_totalaa)->update();
|
||||
|
||||
$roomtype = Db::name('vs_room')->where(['id' => $from_id])->value('type_id');
|
||||
if($roomtype == 6){
|
||||
|
||||
Reference in New Issue
Block a user