]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Удаление тестовых экшенов и представлений из MarketplaceController.php
authorVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Tue, 7 Oct 2025 08:27:02 +0000 (11:27 +0300)
committerVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Tue, 7 Oct 2025 08:27:02 +0000 (11:27 +0300)
erp24/controllers/MarketplaceController.php
erp24/views/marketplace/feed.php [deleted file]

index 5c64531e24b74187aa252ca40c53193bd37e415d..0bf4ae28a42199765e98c881bac6be6e37dc3a04 100644 (file)
@@ -15,59 +15,5 @@ class MarketplaceController extends Controller
             'report' => \yii_app\actions\marketplace\ReportAction::class,
         ];
     }
-    /**
-     * Экшен для генерации и отображения XML-фида.
-     *
-     * @return string
-     */
-    public function actionFeed()
-    {
-        // Получаем информацию о продуктах
-        $productsInfo = MarketplaceService::getAllProductsInfo(10);
-
-        // Генерируем XML-фид
-        $xmlFeed = MarketplaceService::createXMLFeed($productsInfo);
-
-        // Устанавливаем заголовок, чтобы отдать XML
-        Yii::$app->response->format = Response::FORMAT_RAW;
-        Yii::$app->response->headers->add('Content-Type', 'application/xml; charset=utf-8');
-
-        return $xmlFeed;
-    }
-
-
-    public function actionTestFeed()
-    {
-
-        $productsInfo = MarketplaceService::getSomeProductsInfo(3);
-
-
-        $xmlFeed = MarketplaceService::createXMLFeed($productsInfo);
 
-
-        Yii::$app->response->format = \yii\web\Response::FORMAT_RAW;
-        Yii::$app->response->headers->add('Content-Type', 'application/xml; charset=utf-8');
-
-        return $xmlFeed;
-    }
-
-    public function actionFeedTest()
-    {
-        $id =  206008;
-
-        $balanceInfo = MarketplaceService::infoForMarketplace(1);
-
-        Yii::error('Баланс ' . json_encode($balanceInfo, JSON_UNESCAPED_UNICODE));
-        $productsInfo = MarketplaceService::getProductsInfoForFeed($id, $balanceInfo);
-        Yii::error('Инфо товаров ' . json_encode($productsInfo, JSON_UNESCAPED_UNICODE));
-        // $productsInfo = MarketplaceService::getAllProductsInfo($id);
-
-
-        $xmlFeed = MarketplaceService::createXMLFeed($productsInfo);
-        Yii::error('Фид ' . json_encode($xmlFeed, JSON_UNESCAPED_UNICODE));
-        Yii::$app->response->format = Response::FORMAT_RAW;
-        Yii::$app->response->headers->add('Content-Type', 'application/xml; charset=utf-8');
-
-        return $xmlFeed;
-    }
 }
\ No newline at end of file
diff --git a/erp24/views/marketplace/feed.php b/erp24/views/marketplace/feed.php
deleted file mode 100644 (file)
index 1c5f0de..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-
-/** @var $xmlFeed string */
-print_r($xmlFeed);
\ No newline at end of file