From 0bd7d63abced3f34b1873b5abd2b69995188c2d2 Mon Sep 17 00:00:00 2001 From: Vladimir Fomichev Date: Fri, 15 Aug 2025 14:16:23 +0300 Subject: [PATCH] =?utf8?q?=D0=9B=D0=BE=D0=B3=D0=B8=D1=80=D0=BE=D0=B2=D0=B0?= =?utf8?q?=D0=BD=D0=B8=D0=B5=20request?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/api2/controllers/DataController.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/erp24/api2/controllers/DataController.php b/erp24/api2/controllers/DataController.php index d56434ef..ec992b0a 100644 --- a/erp24/api2/controllers/DataController.php +++ b/erp24/api2/controllers/DataController.php @@ -232,8 +232,14 @@ class DataController extends BaseController try { $apiCron = ApiCron::find()->where(['status' => 0])->orderBy(['date' => SORT_ASC])->one(); - - if ($apiCron && $apiCron->id) { + + $mess['debug'] = [ + 'is_object' => is_object($apiCron), + 'class' => get_class($apiCron), + 'attributes' => $apiCron ? $apiCron->attributes : null, + 'errors' => $apiCron ? $apiCron->errors : null + ]; + if (!empty($apiCron) && empty($mess['create_orders'])) { $mess['line'][] = __LINE__; $jsonId = $apiCron->request_id; // $apiCron2 = ApiCron::find()->where(['id' => $apiCron->id])->andWhere(['request_id' => ''])->one(); -- 2.39.5