改进
This commit is contained in:
@@ -18,7 +18,7 @@ class StrategyRequest extends FormRequest
|
||||
{
|
||||
$checkUrl = function ($attribute, $value, $fail) {
|
||||
if ($this->input('key') == StrategyKey::Local) {
|
||||
$folders = [env('THUMBNAIL_PATH', 'thumbnails'), 'fonts', 'css', 'js'];
|
||||
$folders = [config('app.thumbnail_path'), 'fonts', 'css', 'js'];
|
||||
$symlink = Strategy::getRootPath($value);
|
||||
if (! $symlink) {
|
||||
return $fail('访问域名缺少根路径');
|
||||
|
||||
Reference in New Issue
Block a user