]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Тест
authorfomichev <vladimir.fomichev@erp-flowers.ru>
Wed, 26 Feb 2025 07:44:16 +0000 (10:44 +0300)
committerfomichev <vladimir.fomichev@erp-flowers.ru>
Wed, 26 Feb 2025 07:44:16 +0000 (10:44 +0300)
erp24/media/controllers/NotificationController.php

index 8dc4c91b98588402d4fd3922e52be46e8ea24ecd..7af6bb502e97428a69428e2098fa9974f1edb400 100644 (file)
@@ -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',