From 36ac38b2609e4ba491bf09963cb137451074d3e5 Mon Sep 17 00:00:00 2001 From: marina Date: Tue, 6 Aug 2024 14:30:08 +0300 Subject: [PATCH] =?utf8?q?ERP-85=20=D0=A0=D0=B5=D0=B0=D0=BB=D0=B8=D0=B7?= =?utf8?q?=D0=BE=D0=B2=D0=B0=D1=82=D1=8C=20=D0=BE=D0=B1=D0=BC=D0=B5=D0=BD?= =?utf8?q?=20=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B=D1=85=20=D1=81=201=D0=A1=20?= =?utf8?q?=D0=91=D1=83=D1=85=D0=B3=D0=B0=D0=BB=D1=82=D0=B5=D1=80=D0=B8?= =?utf8?q?=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/api2/controllers/DataBuhController.php | 3 ++- erp24/records/ApiCronBuh.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/erp24/api2/controllers/DataBuhController.php b/erp24/api2/controllers/DataBuhController.php index 7eded3ff..df2ff81a 100644 --- a/erp24/api2/controllers/DataBuhController.php +++ b/erp24/api2/controllers/DataBuhController.php @@ -35,6 +35,7 @@ class DataBuhController extends BaseController ->where(['status' => 0]) ->orderBy(['date' => SORT_ASC]) ->one(); + if ($apiCronTest) { $json = $apiCronTest->json_post; @@ -47,7 +48,7 @@ class DataBuhController extends BaseController } } } catch (Exception $e) { - + return $e; } return $this->asJson(json_decode($json, true)); diff --git a/erp24/records/ApiCronBuh.php b/erp24/records/ApiCronBuh.php index cc77bec6..fbd0789b 100644 --- a/erp24/records/ApiCronBuh.php +++ b/erp24/records/ApiCronBuh.php @@ -21,7 +21,7 @@ class ApiCronBuh extends \yii\db\ActiveRecord */ public static function tableName() { - return 'api_cron_buh_test'; + return 'api_cron_buh'; } /** -- 2.39.5