DD-3602: [BACK]. [Доверенность водителю с КЭП] - [реализовать отправку документа через АПИ Диадок]

This commit is contained in:
cherednik 2025-01-09 18:42:58 +04:00
parent a16b8e45fb
commit 09ab8eb13c
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class DigitalSignatureService
exec(sprintf('cp %s %s.pdf', $document->tempFileName, $document->tempFileName));
exec(sprintf('cryptcp -sign -detached -der %s', $document->tempFileName . '.pdf'));
$response = base64_encode(file_get_contents($document->tempFileName . '.sgn'));
$response = base64_encode(file_get_contents($document->tempFileName . '.pdf.sgn'));
$this->removeExistingDocumentService->removeExistingDocument($document);