From 34b0a2b4f5324a2c337ec43f6d3c8ff8abd4d443 Mon Sep 17 00:00:00 2001 From: Jacek Pyziak Date: Tue, 31 Mar 2026 17:52:01 +0200 Subject: [PATCH] update --- public/assets/css/app.css | 1 + resources/scss/app.scss | 1 + src/Modules/Settings/ApaczkaApiClient.php | 4 ++-- src/Modules/Shipments/ApaczkaShipmentService.php | 4 +++- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/public/assets/css/app.css b/public/assets/css/app.css index 27e130f..36cbc5a 100644 --- a/public/assets/css/app.css +++ b/public/assets/css/app.css @@ -1909,6 +1909,7 @@ h4.section-title::before { font-size: 12px; font-weight: 700; line-height: 1.1; + white-space: nowrap; } .order-tag.is-info { border-color: #bfdbfe; diff --git a/resources/scss/app.scss b/resources/scss/app.scss index 0ebea6c..98ab0d8 100644 --- a/resources/scss/app.scss +++ b/resources/scss/app.scss @@ -1190,6 +1190,7 @@ h4.section-title { font-size: 12px; font-weight: 700; line-height: 1.1; + white-space: nowrap; &.is-info { border-color: #bfdbfe; diff --git a/src/Modules/Settings/ApaczkaApiClient.php b/src/Modules/Settings/ApaczkaApiClient.php index eb8887f..6f5ad94 100644 --- a/src/Modules/Settings/ApaczkaApiClient.php +++ b/src/Modules/Settings/ApaczkaApiClient.php @@ -133,7 +133,7 @@ final class ApaczkaApiClient throw new ApaczkaApiException('API Apaczka HTTP ' . $httpCode . ': ' . $message); } if ($status !== 200) { - $responsePreview = substr(json_encode($decoded, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) ?: '', 0, 240); + $responsePreview = substr(json_encode($decoded, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) ?: '', 0, 1000); throw new ApaczkaApiException( 'Blad API Apaczka (status ' . $status . '): ' . $message . '. Odpowiedz: ' . $responsePreview ); @@ -144,7 +144,7 @@ final class ApaczkaApiClient if ($lastSignatureError !== null) { [$decoded, $status, $message] = $lastSignatureError; - $responsePreview = substr(json_encode($decoded, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) ?: '', 0, 240); + $responsePreview = substr(json_encode($decoded, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) ?: '', 0, 1000); throw new ApaczkaApiException( 'Blad API Apaczka (status ' . $status . '): ' . $message . '. Odpowiedz: ' . $responsePreview ); diff --git a/src/Modules/Shipments/ApaczkaShipmentService.php b/src/Modules/Shipments/ApaczkaShipmentService.php index a85c5a3..69a2c95 100644 --- a/src/Modules/Shipments/ApaczkaShipmentService.php +++ b/src/Modules/Shipments/ApaczkaShipmentService.php @@ -214,7 +214,9 @@ final class ApaczkaShipmentService implements ShipmentProviderInterface return str_contains($message, 'pickup not available for selected day') || str_contains($message, "can\\u2019t place an order today") || str_contains($message, "can't place an order today") - || str_contains($message, 'change its date to another working day'); + || str_contains($message, 'change its date to another working day') + || str_contains($message, 'time between cut-off hours for pickup is too short') + || str_contains($message, 'an order for the same day can be placed up till'); } /**