From 83169ab5d5e50ff55cb128e5054559e5071c3e7a Mon Sep 17 00:00:00 2001 From: Chenx221 Date: Sat, 30 Mar 2024 13:43:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8.env=E4=B8=AD=E8=AE=BE?= =?UTF-8?q?=E5=AE=9A=E7=9A=84=E7=AB=99=E7=82=B9=E6=A0=87=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/web.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/web.php b/config/web.php index bc6a5aa..8fa242a 100644 --- a/config/web.php +++ b/config/web.php @@ -9,7 +9,7 @@ $db = require __DIR__ . '/db.php'; $config = [ 'id' => 'basic', - 'name' =>'网盘', + 'name' => $_ENV['SITE_TITLE'], // 'language' => 'zh-CN', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], @@ -84,7 +84,7 @@ if (YII_ENV_DEV) { $config['modules']['debug'] = [ 'class' => 'yii\debug\Module', // uncomment the following to add your IP if you are not connecting from localhost. - 'allowedIPs' => ['127.0.0.1', '::1','192.168.1.*'], + 'allowedIPs' => ['127.0.0.1', '::1', '192.168.1.*'], ]; $config['bootstrap'][] = 'gii';