From: Vladimir Fomichev Date: Mon, 26 Jan 2026 07:50:26 +0000 (+0300) Subject: Исправление переменных X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=73cc29275017f9a779b3ced3eaa98671954fd8e5;p=erp24_rep%2Fyii-erp24%2F.git Исправление переменных --- diff --git a/erp24/services/OrderControlReportService.php b/erp24/services/OrderControlReportService.php index ccb01b59..8d6b45d9 100644 --- a/erp24/services/OrderControlReportService.php +++ b/erp24/services/OrderControlReportService.php @@ -49,16 +49,6 @@ class OrderControlReportService */ public const TIMEZONE = 'Europe/Moscow'; - /** - * Telegram bot token для development - */ - private const TELEGRAM_BOT_DEV = ''; - - /** - * Telegram bot token для production - */ - private const TELEGRAM_BOT_PROD = ''; - /** * Конфигурация отчёта */ @@ -1381,14 +1371,18 @@ class OrderControlReportService /** * Получает токен Telegram-бота в зависимости от окружения * + * Соответствует TelegramService: + * - dev: TELEGRAM_BOT_TOKEN (без суффикса) + * - prod: TELEGRAM_BOT_TOKEN_PROD + * * @return string */ private function getTelegramBotToken(): string { if ($this->isDevEnvironment()) { - return getenv('TELEGRAM_BOT_TOKEN_DEV') ?: self::TELEGRAM_BOT_DEV; + return getenv('TELEGRAM_BOT_TOKEN') ?: ''; } - return getenv('TELEGRAM_BOT_TOKEN_PROD') ?: self::TELEGRAM_BOT_PROD; + return getenv('TELEGRAM_BOT_TOKEN_PROD') ?: ''; } /**