mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 09:39:10 +08:00
update server stat
This commit is contained in:
parent
0fc9b1d867
commit
397436761f
@ -63,7 +63,7 @@ class V2boardCache extends Command
|
||||
'd' => $serverLog->d,
|
||||
'online' => $serverLog->online
|
||||
];
|
||||
Cache::put(CacheKey::get('SERVER_STAT', $serverLog->server_id), json_encode($data), 3600);
|
||||
dd(Cache::put(CacheKey::get('SERVER_STAT', $serverLog->server_id), json_encode($data), 3600));
|
||||
ServerStat::create($data);
|
||||
}
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ class ServerController extends Controller
|
||||
$server[$i]['tags'] = json_decode($server[$i]['tags']);
|
||||
}
|
||||
$server[$i]['group_id'] = json_decode($server[$i]['group_id']);
|
||||
$serverStat = Cache::get(CacheKey::get('SERVER_STAT', $server[$i]['id']));
|
||||
$serverStat = Cache::get(CacheKey::get('SERVER_STAT', $server[$i]['parent_id'] ? $server[$i]['parent_id'] : $server[$i]['id']));
|
||||
if ($serverStat) {
|
||||
$serverStat = json_decode($serverStat, true);
|
||||
$server[$i]['u'] = $serverStat['u'];
|
||||
|
2
public/assets/admin/umi.css
vendored
2
public/assets/admin/umi.css
vendored
File diff suppressed because one or more lines are too long
2
public/assets/admin/umi.js
vendored
2
public/assets/admin/umi.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user