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', '') ];