From: fomichev Date: Wed, 26 Feb 2025 07:44:16 +0000 (+0300) Subject: Тест X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=6e5aaa614e40eef561dc31b18e482e5eb1ccb1a3;p=erp24_rep%2Fyii-erp24%2F.git Тест --- 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',