医生接诊台

This commit is contained in:
2026-04-30 10:35:39 +08:00
parent 64a914c05a
commit bb08eeab32
5 changed files with 17 additions and 36 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'] : '';
}