From 4b285932f832db118deb9ed158356e05caa82fb6 Mon Sep 17 00:00:00 2001 From: fomichev Date: Mon, 5 May 2025 16:21:48 +0300 Subject: [PATCH] =?utf8?q?=D0=9E=D1=82=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B0?= =?utf8?q?=20=D0=B7=D0=B0=D0=BA=D0=B0=D0=B7=D0=BE=D0=B2=20=D0=B2=20=D0=BB?= =?utf8?q?=D0=BE=D0=B3=20=D0=BD=D0=B0=20=D0=BF=D1=80=D0=BE=D0=B4=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/api2/controllers/DataController.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/erp24/api2/controllers/DataController.php b/erp24/api2/controllers/DataController.php index 05a75bd2..7160e7d5 100644 --- a/erp24/api2/controllers/DataController.php +++ b/erp24/api2/controllers/DataController.php @@ -268,6 +268,15 @@ class DataController extends BaseController file_put_contents(self::OUT_DIR . '/request_' . $jsonId . '.json', PHP_EOL . $json); file_put_contents(self::getPathJson() . '/request_' . $jsonId . '.json', PHP_EOL . $json); + if (!TelegramService::isDevEnv()) { + $mess['line'][] = __LINE__; + $newOrdersArray = $this->getMarketplaceOrders(); + if (!empty($newOrdersArray)) { + $mess['line'][] = __LINE__; + $mess['create_orders'] = $newOrdersArray; + } + $mess['line'][] = __LINE__; + } LogService::apiDataLogs(1, json_encode($mess, JSON_UNESCAPED_UNICODE), $jsonId); } -- 2.39.5