DD-3602: [BACK]. [Доверенность водителю с КЭП] - [реализовать отправку документа через АПИ Диадок]
This commit is contained in:
parent
a16b8e45fb
commit
09ab8eb13c
|
|
@ -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(file_get_contents($document->tempFileName . '.sgn'));
|
$response = base64_encode(file_get_contents($document->tempFileName . '.pdf.sgn'));
|
||||||
|
|
||||||
$this->removeExistingDocumentService->removeExistingDocument($document);
|
$this->removeExistingDocumentService->removeExistingDocument($document);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue