From 9298c5921177a201626102fa631f64b9e6b382a1 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Wed, 27 Dec 2023 22:05:30 +0300 Subject: [PATCH] add cron/cloudpayments-region during moving api1 to yii --- .../api1/actions/cron/CloudpaymentsRegionAction.php | 12 ++++++++++++ erp24/api1/controllers/CronController.php | 1 + erp24/api1/views/cron/cloudpayments-region.php | 10 ++++++++++ 3 files changed, 23 insertions(+) create mode 100644 erp24/api1/actions/cron/CloudpaymentsRegionAction.php create mode 100644 erp24/api1/views/cron/cloudpayments-region.php diff --git a/erp24/api1/actions/cron/CloudpaymentsRegionAction.php b/erp24/api1/actions/cron/CloudpaymentsRegionAction.php new file mode 100644 index 0000000..fcd577b --- /dev/null +++ b/erp24/api1/actions/cron/CloudpaymentsRegionAction.php @@ -0,0 +1,12 @@ +controller->renderPartial('cloudpayments-region'); + } +} \ No newline at end of file diff --git a/erp24/api1/controllers/CronController.php b/erp24/api1/controllers/CronController.php index 2992161..488f97e 100644 --- a/erp24/api1/controllers/CronController.php +++ b/erp24/api1/controllers/CronController.php @@ -17,6 +17,7 @@ class CronController extends BaseController 'custom-1c-cron' => \app\actions\cron\Custom1cCronAction::class, 'balances-history' => \app\actions\cron\BalanceHistoryAction::class, 'export-catalog' => \app\actions\cron\ExportCatalogAction::class, + 'cloudpayments-region' => \app\actions\cron\CloudpaymentsRegionAction::class, ]; } } diff --git a/erp24/api1/views/cron/cloudpayments-region.php b/erp24/api1/views/cron/cloudpayments-region.php new file mode 100644 index 0000000..b890693 --- /dev/null +++ b/erp24/api1/views/cron/cloudpayments-region.php @@ -0,0 +1,10 @@ +