prepare( "UPDATE transit_trips SET current_stop_seq=?, updated_at=NOW() WHERE id=? AND driver_id=?" )->execute([$stopSeq, $tripId, $driverId]); global $redis; if ($redis) { $redis->publish("transit:trip:{$tripId}:stop", json_encode(['seq' => $stopSeq, 'ts' => time()])); } } jsonSuccess(['ok' => true]);