Debug
This commit is contained in:
parent
466867fc6f
commit
849894cf15
1 changed files with 20 additions and 18 deletions
38
vendor/action/log/log_save.php
vendored
38
vendor/action/log/log_save.php
vendored
|
|
@ -165,29 +165,31 @@ try {
|
|||
// Percorre a pasta Ged
|
||||
foreach ($jsonLog->ged as $path => $details) {
|
||||
|
||||
echo $path;
|
||||
/** Verifica se não é informação da partição */
|
||||
if($path !== 'partition'){
|
||||
|
||||
/** Consulta se o disco já foi cadastrado */
|
||||
$StationFolderResult = $StationFolder->Search($stationId, $path);
|
||||
/** Consulta se o disco já foi cadastrado */
|
||||
$StationFolderResult = $StationFolder->Search($stationId, $path);
|
||||
|
||||
/** Prepara o Id da estação */
|
||||
$stationFolderId = $StationFolderResult->station_folder_id > 0 ? $StationFolderResult->station_folder_id : 0;
|
||||
/** Prepara o Id da estação */
|
||||
$stationFolderId = $StationFolderResult->station_folder_id > 0 ? $StationFolderResult->station_folder_id : 0;
|
||||
|
||||
// Percorre cada atributo da pasta
|
||||
foreach ($details as $key => $value) {
|
||||
// Percorre cada atributo da pasta
|
||||
foreach ($details as $key => $value) {
|
||||
|
||||
// /** Grava uma nova pasta ou atualiza o atual */
|
||||
// if (!$StationFolder->Save(
|
||||
// $stationFolderId,
|
||||
// $stationId,
|
||||
// $path,
|
||||
// $value,
|
||||
// $value
|
||||
// )) {
|
||||
/** Grava uma nova pasta ou atualiza o atual */
|
||||
if (!$StationFolder->Save(
|
||||
$stationFolderId,
|
||||
$stationId,
|
||||
$path,
|
||||
$value,
|
||||
$value
|
||||
)) {
|
||||
|
||||
// /** Informo */
|
||||
// throw new InvalidArgumentException($StationDisk->getErrors(), 0);
|
||||
// }
|
||||
/** Informo */
|
||||
throw new InvalidArgumentException($StationDisk->getErrors(), 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue