Stable without período in autidoría

This commit is contained in:
2023-08-11 15:41:57 +00:00
parent ec382e989a
commit 3ae35c84f9
14 changed files with 1145 additions and 934 deletions

View File

@@ -1,4 +1,8 @@
<?
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
$ruta = "../";
require_once '../include/bd_pdo.php';
$curl = curl_init();
@@ -8,7 +12,7 @@ curl_setopt_array($curl, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => "",
CURLOPT_HTTPHEADER => [
"token: f65f921264e4ab135472adb5a946212dd4b995d929294afec31eef192b8de8d6a076648906f70012c9803e5918d0fc99499d7d1fb7c998cc06c7a10eef61f66a",
"token: 5b892845736a29b5846073be0a11f0fc87113648aae1e8279830c4bc05f585eba13e0b1b4f0c42a12d694bb8091d23f7564b15f3141768dfa6ed2aa709864986",
"username: SGU_APSA_AUD_ASIST"
],
]);
@@ -24,7 +28,7 @@ if ($err)
$data = json_decode($response, true);
$in_db = array_map(function ($item) use ($db) {
$item['in_db'] = $db->where('id_reference', $item['IdPeriodo'])->has('periodo');
$item['in_db'] = $db->where('id_periodo_sgu', $item['IdPeriodo'])->has('periodo');
return $item;
}, $data);