From 29535733527defe0b4260c70144178415a772185 Mon Sep 17 00:00:00 2001 From: Aleksey Filippov Date: Thu, 9 Oct 2025 16:12:35 +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 | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/erp24/api2/controllers/OrdersController.php b/erp24/api2/controllers/OrdersController.php index 5cbf4360..e1adcf7f 100644 --- a/erp24/api2/controllers/OrdersController.php +++ b/erp24/api2/controllers/OrdersController.php @@ -270,16 +270,13 @@ class OrdersController extends BaseController 'items' => $items, ]; } - $resultLog = $result; - if (empty($jsonId)) { - $resultLog['line'][] = __LINE__; - $jsonId = time(); - } - LogService::apiDataLogs(1, json_encode($resultLog, JSON_UNESCAPED_UNICODE), $jsonId); - $result = json_encode($result, JSON_UNESCAPED_UNICODE); + $jsonId = time(); + $resultLog = $result; + $resultLog['line'][] = __LINE__; + LogService::apiDataLogs(1, json_encode($resultLog, JSON_UNESCAPED_UNICODE), $jsonId); return [ 'success' => true, - 'result' => $result, + 'result' => $result, ]; } catch (\Exception $e) { -- 2.39.5