Resolviendo bugs para integracion end2end de IL

This commit is contained in:
imnavajas
2025-02-19 22:04:51 +01:00
parent 4576747ac1
commit 84e7bf3dbb
2 changed files with 8 additions and 6 deletions

View File

@ -108,8 +108,9 @@ class ImprimelibrosApi extends ResourceController
$response = [ $response = [
'status' => 200, 'status' => 200,
'error' => null, 'error' => null,
'messages' => [ 'data' => [
'precio' => $response['precio_u'] 'tiradas' => $response['tiradas'],
'precios' => $response['precio_u']
] ]
]; ];
return $this->respond($response); return $this->respond($response);

View File

@ -441,7 +441,7 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController
try { try {
$reqData = $this->request->getPost(); //$reqData = $this->request->getPost();
$modelPapelGenerico = new PapelGenericoModel(); $modelPapelGenerico = new PapelGenericoModel();
@ -558,10 +558,11 @@ class Presupuestocliente extends \App\Controllers\BaseResourceController
} }
if (array_key_exists('exception', $return_data)) { if (array_key_exists('exception', $return_data)) {
return $this->failServerError( return $return_data;
/*return $this->failServerError(
$return_data['exception'] . ' - ' . $return_data['exception'] . ' - ' .
$return_data['file'] . ' - ' . $return_data['line'] $return_data['file'] . ' - ' . $return_data['line']
); );*/
} }
// calculo del envio base (tirada_maxima) // calculo del envio base (tirada_maxima)