From 9ebc3f416787fac6fd48bc40efbcc1aece4eb378 Mon Sep 17 00:00:00 2001 From: Juan Felipe Zapata Moreno Date: Sat, 29 Nov 2025 12:26:10 -0600 Subject: [PATCH] =?UTF-8?q?Cambio=20se=20agreg=C3=B3=20busqueda=20por=20pl?= =?UTF-8?q?aca=20la=20busqueda=20repuve=20estatal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/Repuve/InscriptionController.php | 12 ++++++++++++ app/Services/PadronEstatalService.php | 2 -- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Repuve/InscriptionController.php b/app/Http/Controllers/Repuve/InscriptionController.php index d858349..c1ba526 100644 --- a/app/Http/Controllers/Repuve/InscriptionController.php +++ b/app/Http/Controllers/Repuve/InscriptionController.php @@ -450,4 +450,16 @@ private function getOwner(string $niv): array $datos = $this->padronEstatalService->getVehiculoByNiv($niv); return $this->padronEstatalService->extraerDatosPropietario($datos); } + + private function getVehicleByPlaca(string $placa): array + { + $datos = $this->padronEstatalService->getVehiculoByPlaca($placa); + return $this->padronEstatalService->extraerDatosVehiculo($datos); + } + + private function getOwnerByPlaca(string $placa): array + { + $datos = $this->padronEstatalService->getVehiculoByPlaca($placa); + return $this->padronEstatalService->extraerDatosPropietario($datos); + } } diff --git a/app/Services/PadronEstatalService.php b/app/Services/PadronEstatalService.php index 3a4b5c8..6f5eb4f 100644 --- a/app/Services/PadronEstatalService.php +++ b/app/Services/PadronEstatalService.php @@ -33,8 +33,6 @@ public function getVehiculoByFolio(string $folio): array */ private function consultarPadron(string $tipo, string $valor): array { - $tipo = 'niv'; - // Construir el Data en formato JSON $data = json_encode([ 'tipo' => $tipo,