From e1703f1146c1cdacff857f0cded6c4e68cb80f80 Mon Sep 17 00:00:00 2001 From: WispX <1591788658@qq.com> Date: Tue, 17 Mar 2020 17:50:46 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E5=A2=9E=E5=8A=A0=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E8=87=AA=E5=AE=9A=E4=B9=89=E9=A2=9D=E5=A4=96=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 4 ++++ config/system.php | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index f25e8903..7f2523ab 100644 --- a/.env.example +++ b/.env.example @@ -10,3 +10,7 @@ password = {password} hostport = {hostport} charset = utf8mb4 prefix = lsky_ + +[system] +intercept_salacity = false +url_query = '' diff --git a/config/system.php b/config/system.php index f5d1938d..92548b1b 100644 --- a/config/system.php +++ b/config/system.php @@ -8,7 +8,7 @@ return [ // 违规图片是否直接拦截 - 'intercept_salacity' => false, + 'intercept_salacity' => env('system.intercept_salacity', false), // 图片链接额外参数(例: ?test=123) - 'url_query' => '' + 'url_query' => env('system.url_query', '') ];