From e81dc3f88f0a18be99d782df0406186349f709a5 Mon Sep 17 00:00:00 2001 From: imnavajas Date: Thu, 20 Feb 2025 12:06:21 +0100 Subject: [PATCH] Refector --- ci4/app/Controllers/API/ImprimelibrosApi.php | 73 +------------------- 1 file changed, 1 insertion(+), 72 deletions(-) diff --git a/ci4/app/Controllers/API/ImprimelibrosApi.php b/ci4/app/Controllers/API/ImprimelibrosApi.php index 48e1284e..35838875 100644 --- a/ci4/app/Controllers/API/ImprimelibrosApi.php +++ b/ci4/app/Controllers/API/ImprimelibrosApi.php @@ -30,78 +30,7 @@ class ImprimelibrosApi extends ResourceController //return $this->respond(var_dump($post_data)); - $data_tmp = array - ( - 'clienteId' => 1870, - 'tamanio' => array - ( - 'ancho' => 170, - 'alto' => 240 - ), - 'tirada' => array - ( - '0' => 50, - '1' => 100, - - ), - 'paginas' => 320, - 'paginasColor' => 0, - 'pagColorConsecutivas' => 0, - 'papelInteriorDiferente' => 0, - 'paginasCuadernillo' => 32, - 'tipo' => 'cosido', - 'isColor' => 0, - 'isHq' => 0, - 'interior' => array - ( - 'papelInterior' => 3, - 'gramajeInterior' => 80 - ), - 'guardas' => array - ( - 'papel' => 'OFF1', - 'gramaje' => 170, - 'caras' => 8 - ), - 'posPaginasColor' => null, - 'prototipo' => 0, - 'ferro' => 0, - 'ferroDigital' => 0, - 'marcapaginas' => 0, - 'retractilado' => 0, - 'retractilado5' => 0, - 'eb' => 10.5, - 'cubierta' => array - ( - 'tipoCubierta' => 'tapaDura', - 'papelCubierta' => 2, - 'gramajeCubierta' => 170, - 'cabezada' => 'WHI', - 'acabado' => 1, - 'carasImpresion' => 2, - 'lomoRedondo' => 0, - 'solapas' => 0, - ), - 'sobrecubierta' => false, - 'faja' => false, - 'excluirRotativa' => 0, - 'ivaReducido' => 1, - 'servicios' => array - ( - 'prototipo' => 0, - 'ferro' => 0, - 'ferroDigital' => 0, - 'marcapaginas' => 0, - 'retractilado' => 0, - 'retractilado5' => 0 - ), - 'entrega_taller' => 1, - 'id' => 334 - ); - - // Crear el cliente HTTP - $client = \Config\Services::curlrequest(); - + // Instancia de presupuesto cliente $presupuestocliente = new Presupuestocliente(); $response = $presupuestocliente->calcular($post_data);