Commit 04c1cf58fe719dac50f9b633629456df86fefbf0

Authored by Guilherme Andrade Del Cantoni
1 parent f431b6b9

Correção de erro StartTag invalid element name in Entity

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
rn/ExpedirProcedimentoRN.php
... ... @@ -976,7 +976,9 @@ class ExpedirProcedimentoRN extends InfraRN {
976 976 $objComponenteDigital = $this->consultarComponenteDigital($objDocumentoDTO->getDblIdDocumento());
977 977 $hashDoComponenteDigitalAnterior = (isset($objComponenteDigital)) ? $objComponenteDigital->getStrHashConteudo() : null;
978 978 if(isset($hashDoComponenteDigitalAnterior) && ($hashDoComponenteDigitalAnterior <> $hashDoComponenteDigital)){
979   - $hashDoComponenteDigital = $arrInformacaoArquivo['CONTEUDO_LEGADO'];
  979 + $strConteudoAssinaturaLegado = $arrInformacaoArquivo['CONTEUDO_LEGADO'];
  980 + $hashDoComponenteDigital = hash($strAlgoritmoHash, $strConteudoAssinaturaLegado, true);
  981 + $hashDoComponenteDigital = base64_encode($hashDoComponenteDigital);
980 982 }
981 983  
982 984 //TODO: Revisar tal implementao para atender a gerao de hash de arquivos grandes
... ...