From 4e9566d45ec70381aa2c86efbf1d0f7b5d74ef93 Mon Sep 17 00:00:00 2001 From: marina Date: Wed, 14 Aug 2024 09:43:49 +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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/erp24/api2/controllers/DataBuhController.php b/erp24/api2/controllers/DataBuhController.php index 667dc153..da404483 100644 --- a/erp24/api2/controllers/DataBuhController.php +++ b/erp24/api2/controllers/DataBuhController.php @@ -11,8 +11,8 @@ use yii_app\records\ApiCronBuh; class DataBuhController extends BaseController { const OUT_DIR = -// __DIR__ . "/../json"; - "/var/www/erp24/api2/json"; +// DIR . "/../json"; + "/var/www/erp24/api2/json_buh"; // "/var/www/www-root/data/www/api.bazacvetov24.ru/data/json"; public function actionRequest() { @@ -86,8 +86,8 @@ class DataBuhController extends BaseController $fl = time(); } // InfoLogService::setInfoLog(__FILE__, __LINE__, 'upload_' . $fl . '.json' , 'info_id_25_1'); - - file_put_contents(self::OUT_DIR . '/upload_' . $fl . '.json', PHP_EOL . $request); +// +// file_put_contents(self::OUT_DIR . '/upload_' . $fl . '.json', PHP_EOL . $request); try { @@ -103,7 +103,7 @@ class DataBuhController extends BaseController } } catch (Exception $e) { - + file_put_contents(self::OUT_DIR . '/error_buh_upload.txt', PHP_EOL . 'result empty', FILE_APPEND); } return $this->asJson(['response' => true]); -- 2.39.5