Compare commits

..

6 Commits

Author SHA1 Message Date
akurilenko 2845a7d528 Merge pull request 'DDB-2156: [BACK]. [Подписание доверенности] — [КЭП]' (#7) from DDB-2156 into master
build (signer) TeamCity build finished Details
Reviewed-on: #7
2025-12-10 17:15:23 +03:00
cherednik bf677487d3 DDB-2156: [BACK]. [Подписание доверенности] — [КЭП]
build (signer) TeamCity build finished Details
2025-12-03 14:49:15 +04:00
cherednik bd3d4b3303 master: shutdown install license
build (signer) TeamCity build finished Details
2025-09-22 19:59:19 +04:00
dcherednik 0e560b59b1 Merge pull request 'fix-php-version: set version to 8.3' (#6) from fix-php-version into master
build (signer) TeamCity build failed Details
Reviewed-on: #6
2025-05-15 15:39:39 +03:00
cherednik 3dfe7dba30 fix-php-version: set version to 8.3
build (signer) TeamCity build finished Details
2025-05-15 16:34:36 +04:00
dcherednik b7d24cd749 Merge pull request 'DDB-1753' (#5) from DDB-1753 into master
build (signer) TeamCity build finished Details
Reviewed-on: #5
2025-03-21 13:37:34 +03:00
6 changed files with 39 additions and 37 deletions

View File

@ -4,12 +4,12 @@ ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install -y wget libgtk-3-0 libpcsclite-dev pcscd curl software-properties-common git zip bash
RUN add-apt-repository ppa:ondrej/php
RUN apt update && apt install -y \
php-fpm \
php-curl \
php \
php-common \
php-cli \
php-xml \
php8.3-fpm \
php8.3-curl \
php8.3 \
php8.3-common \
php8.3-cli \
php8.3-xml \
gnupg \
g++ \
procps \
@ -55,7 +55,7 @@ RUN apt update && apt install -y okular-csp-utils
RUN mkdir -p /root/.config
COPY license.key /license.key
RUN echo Y | pdfcpro install-license /license.key
# RUN echo Y | pdfcpro install-license /license.key
COPY Inter-Bold.ttf /usr/local/share/fonts/Inter-Bold.ttf
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

View File

@ -4,12 +4,12 @@ ARG DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install -y wget libgtk-3-0 libpcsclite-dev pcscd curl software-properties-common git zip bash
RUN add-apt-repository ppa:ondrej/php
RUN apt update && apt install -y \
php-fpm \
php-curl \
php \
php-common \
php-cli \
php-xml \
php8.3-fpm \
php8.3-curl \
php8.3 \
php8.3-common \
php8.3-cli \
php8.3-xml \
gnupg \
g++ \
procps \

View File

@ -6,13 +6,15 @@ namespace App\SignDocument\Api;
use App\Infrastructure\External\Api\AbstractApi;
use App\Infrastructure\External\Api\BinaryStringFileResult;
use GuzzleHttp\Exception\BadResponseException;
use GuzzleHttp\Exception\GuzzleException;
use GuzzleHttp\RequestOptions;
class Api extends AbstractApi
{
public ApiParams $apiParams;
public function send(string $token, string $path, int $batch): array
public function send(string $token, string $path, int $order): array
{
$params = [
RequestOptions::HEADERS => [
@ -22,7 +24,7 @@ class Api extends AbstractApi
RequestOptions::MULTIPART => [
[
'name' => 'file',
'contents' => fopen($path, 'r'),
'contents' => file_get_contents($path),
'filename' => $path,
'headers' => [
'Content-Type' => '<Content-type header>',
@ -35,7 +37,7 @@ class Api extends AbstractApi
],
];
$response = $this->client->post(sprintf('%s%s%s', $this->apiParams->endPointUrl, '/api/v1/document/upload/batch/', $batch), $params);
$response = $this->client->post(sprintf('%s%s%s', $this->apiParams->endPointUrl, '/api/v1/documents/upload/carrier/order/', $order), $params);
return $this->responseHandler->setResponse($response)->getContentJsonToArray();
}

View File

@ -9,6 +9,6 @@ use App\Infrastructure\Http\RequestDtoInterface;
class SignRequest implements RequestDtoInterface
{
public string $url;
public int $batch;
public int $order;
public string $apiToken;
}

View File

@ -34,7 +34,7 @@ class SignService
$this->sign($document->tempFileName);
$response = $this->api->send($token, $document->tempFileName . '_sign.pdf', $request->batch);
$response = $this->api->send($token, $document->tempFileName . '_sign.pdf', $request->order);
$this->removeExistingDocumentService->removeExistingDocument($document);

View File

@ -1,22 +1,22 @@
-----BEGIN PGP MESSAGE-----
owGbwMvMwMX4m2NrnreKjyDj6QN7khjSpXteViuVpRYVZ+bnKVkpKBkq6Sgo5WQm
p+YV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