房间火热值修改
This commit is contained in:
@@ -30,9 +30,9 @@ class PerformPerSecond
|
||||
echo "pk发起10秒后无应答拒绝:\n";
|
||||
$this->pk_start_refuse();
|
||||
echo "\n";
|
||||
echo "房间火热值更新:\n";
|
||||
$this->room_hot_update();
|
||||
echo "\n";
|
||||
// echo "房间火热值更新:\n";
|
||||
// $this->room_hot_update();
|
||||
// echo "\n";
|
||||
}
|
||||
|
||||
|
||||
@@ -182,10 +182,11 @@ class PerformPerSecond
|
||||
}
|
||||
if($hot_values['today_hot_value'] > $value['value']){
|
||||
$hot_value = $hot_values['hot_value'];
|
||||
$today_hot_value = $value['value'];
|
||||
}
|
||||
|
||||
$res = db::name('vs_room')->where('id',$value['room_id'])->update([
|
||||
'today_hot_value' => $value['value'],
|
||||
'today_hot_value' => $today_hot_value,
|
||||
'hot_value' => $hot_value,
|
||||
'updatetime' => time()
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user