From 6e5aaa614e40eef561dc31b18e482e5eb1ccb1a3 Mon Sep 17 00:00:00 2001 From: fomichev Date: Wed, 26 Feb 2025 10:44:16 +0300 Subject: [PATCH] =?utf8?q?=D0=A2=D0=B5=D1=81=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/media/controllers/NotificationController.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/erp24/media/controllers/NotificationController.php b/erp24/media/controllers/NotificationController.php index 8dc4c91b..7af6bb50 100644 --- a/erp24/media/controllers/NotificationController.php +++ b/erp24/media/controllers/NotificationController.php @@ -25,7 +25,12 @@ class NotificationController extends Controller public function actionTest() { Yii::$app->response->format = \yii\web\Response::FORMAT_JSON; - return ['ok']; + Yii::$app->response->statusCode = 200; + return [ + 'version' => '1.0.0', + 'name' => 'БазаЦветов24', + 'time' => gmdate('Y-m-d\TH:i:s\Z'), + ]; } public function actionIndex() @@ -89,6 +94,7 @@ class NotificationController extends Controller try { switch ($eventType) { case 'PING': + Yii::$app->response->statusCode = 200; return $this->asJson([ 'version' => '1.0.0', 'name' => 'БазаЦветов24', -- 2.39.5