From b9ec14629acc6f6ca65f1ffc855f97a64a405508 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Sun, 15 Jan 2023 08:00:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E5=A2=9E=E5=8A=A0=E8=8F=9C=E5=8D=95=E6=A0=8F?= =?UTF-8?q?=E7=A4=BE=E5=8C=BA=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Api/ForumController.php | 2 +- config/forum.php | 5 ----- config/settings.php | 3 +++ resources/views/layouts/app.blade.php | 3 +++ 4 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 config/forum.php diff --git a/app/Http/Controllers/Api/ForumController.php b/app/Http/Controllers/Api/ForumController.php index 745a14c..4214938 100644 --- a/app/Http/Controllers/Api/ForumController.php +++ b/app/Http/Controllers/Api/ForumController.php @@ -18,7 +18,7 @@ class ForumController extends Controller public function __construct() { - $this->baseUrl = config('forum.base_url'); + $this->baseUrl = config('settings.forum.base_url'); $this->http = Http::baseUrl($this->baseUrl . '/api')->throw(); } diff --git a/config/forum.php b/config/forum.php deleted file mode 100644 index b753ecc..0000000 --- a/config/forum.php +++ /dev/null @@ -1,5 +0,0 @@ - env('FORUM_BASEURL') -]; diff --git a/config/settings.php b/config/settings.php index 4bee548..40fa01f 100644 --- a/config/settings.php +++ b/config/settings.php @@ -28,4 +28,7 @@ 'code' => env('SUPPORT_REAL_NAME_APP_CODE') ] ], + 'forum' => [ + 'base_url' => env('FORUM_BASEURL') + ], ]; diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index d88c37e..40e90d6 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -58,6 +58,9 @@ 仪表盘 + 社区 + 联系我们