update online user stat

This commit is contained in:
Tokumeikoi
2020-06-05 13:25:32 +08:00
parent 3200c427ce
commit 47a6c4077a
6 changed files with 12 additions and 31 deletions

View File

@ -42,7 +42,6 @@ class V2boardCache extends Command
*/
public function handle()
{
$this->cacheServerStat();
}
private function cacheServerStat()
@ -63,8 +62,7 @@ class V2boardCache extends Command
'd' => $serverLog->d,
'online' => $serverLog->online
];
Cache::put(CacheKey::get('SERVER_STAT', $serverLog->server_id), json_encode($data), 3600);
ServerStat::create($data);
// ServerStat::create($data);
}
}
}