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

This commit is contained in:
cherednik 2025-01-09 18:39:40 +04:00
parent 4947b8ea19
commit a16b8e45fb
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('cp %s %s.pdf', $document->tempFileName, $document->tempFileName));
exec(sprintf('cryptcp -sign -detached -der %s', $document->tempFileName . '.pdf')); exec(sprintf('cryptcp -sign -detached -der %s', $document->tempFileName . '.pdf'));
$response = base64_encode($document->tempFileName . '.sgn'); $response = base64_encode(file_get_contents($document->tempFileName . '.sgn'));
$this->removeExistingDocumentService->removeExistingDocument($document); $this->removeExistingDocumentService->removeExistingDocument($document);