Merge branch 'long-consultation-desk'

This commit is contained in:
2026-04-30 10:36:25 +08:00
148 changed files with 2944 additions and 22718 deletions
+2 -10
View File
@@ -44,11 +44,7 @@ class FileService
if (strstr($uri, 'http://')) return $uri;
if (strstr($uri, 'https://')) return $uri;
$default = Cache::get('STORAGE_DEFAULT');
if (!$default) {
$default = ConfigService::get('storage', 'default', 'local');
Cache::set('STORAGE_DEFAULT', $default);
}
$default = ConfigService::get('storage', 'default', 'local');
if ($default === 'local') {
if($type == 'public_path') {
@@ -56,11 +52,7 @@ class FileService
}
$domain = request()->domain();
} else {
$storage = Cache::get('STORAGE_ENGINE');
if (!$storage) {
$storage = ConfigService::get('storage', $default);
Cache::set('STORAGE_ENGINE', $storage);
}
$storage = ConfigService::get('storage', $default);
$domain = $storage ? $storage['domain'] : '';
}