From 66f70289bcf56e99856460e4a4cab276c698f036 Mon Sep 17 00:00:00 2001 From: Aleksey Filippov Date: Thu, 9 Oct 2025 16:07:33 +0300 Subject: [PATCH] =?utf8?q?=D0=9F=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D1=84?= =?utf8?q?=D0=BE=D1=80=D0=BC=D0=B0=D1=82=D0=B0=20=D0=BE=D1=82=D0=B2=D0=B5?= =?utf8?q?=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/api2/controllers/OrdersController.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/erp24/api2/controllers/OrdersController.php b/erp24/api2/controllers/OrdersController.php index 08bd797d..5cbf4360 100644 --- a/erp24/api2/controllers/OrdersController.php +++ b/erp24/api2/controllers/OrdersController.php @@ -270,12 +270,13 @@ class OrdersController extends BaseController 'items' => $items, ]; } + $resultLog = $result; if (empty($jsonId)) { - $result['line'][] = __LINE__; + $resultLog['line'][] = __LINE__; $jsonId = time(); } - LogService::apiDataLogs(1, json_encode($result, JSON_UNESCAPED_UNICODE), $jsonId); - $result = $result ?? json_encode($result, JSON_UNESCAPED_UNICODE); + LogService::apiDataLogs(1, json_encode($resultLog, JSON_UNESCAPED_UNICODE), $jsonId); + $result = json_encode($result, JSON_UNESCAPED_UNICODE); return [ 'success' => true, 'result' => $result, -- 2.39.5