fix: 修复邮箱配置无法从环境变量读取的问题

This commit is contained in:
xboard
2024-01-01 01:06:07 +08:00
parent 2c963d9a7d
commit cdc86bbe47
2 changed files with 7 additions and 7 deletions

View File

@@ -28,6 +28,6 @@ if (! function_exists('admin_setting')) {
return;
}
$default = config('v2board.'. $key) ?? $default;
return app('setting')->get($key, $default) ;
return app('setting')->get($key) ?? $default ;
}
}