update: new auth

This commit is contained in:
tokumeikoi
2022-07-28 15:13:17 +08:00
48 changed files with 306 additions and 278 deletions

View File

@ -48,10 +48,10 @@ class StatServerJob implements ShouldQueue
//
}
$data = StatServer::where('record_at', $recordAt)
->where('server_id', $this->server['id'])
$data = StatServer::lockForUpdate()
->where('record_at', $recordAt)
->where('server_id', $this->server->id)
->where('server_type', $this->protocol)
->lockForUpdate()
->first();
if ($data) {
try {