From f4b7da0f4c9ce6df3e06143ec7200a3378e25990 Mon Sep 17 00:00:00 2001 From: fomichev Date: Thu, 27 Mar 2025 17:55:54 +0300 Subject: [PATCH] =?utf8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8=D0=B5?= =?utf8?q?=20=D0=B4=D0=B8=D1=80=D0=B5=D0=BA=D1=82=D0=BE=D1=80=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/media/controllers/NotificationController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erp24/media/controllers/NotificationController.php b/erp24/media/controllers/NotificationController.php index b2e87338..0de69eb3 100644 --- a/erp24/media/controllers/NotificationController.php +++ b/erp24/media/controllers/NotificationController.php @@ -84,6 +84,9 @@ class NotificationController extends Controller */ $rawBody = Yii::$app->request->getRawBody(); + if (!is_dir(self::OUT_DIR)) { + mkdir(self::OUT_DIR, 0777, true); + } file_put_contents( self::OUT_DIR . '/notifications.txt', PHP_EOL . date('Y-m-d H:i:s') . ' ' . $rawBody, -- 2.39.5