Update: 2026-07-22 23:06:34
This commit is contained in:
@@ -890,6 +890,13 @@ $io->on('connection', function ($socket) use ($INTERNAL_KEY) {
|
||||
if ($needExpireRefresh || $needHmset) {
|
||||
$eventBuffer[$driverId]['expire'] = 900;
|
||||
$state['expire_ts'] = $now;
|
||||
if (!isset($eventBuffer[$driverId]['hmset'])) {
|
||||
$eventBuffer[$driverId]['hmset'] = [
|
||||
'id' => $driverId, 'lat' => $lat, 'lng' => $lng, 'updated_at' => $now
|
||||
];
|
||||
} else {
|
||||
$eventBuffer[$driverId]['hmset']['updated_at'] = $now;
|
||||
}
|
||||
}
|
||||
|
||||
if ($statusChanged) {
|
||||
|
||||
Reference in New Issue
Block a user