From e2c86c0c6de33aa57fc16e724f5f0f6480085d18 Mon Sep 17 00:00:00 2001 From: u2nyakim Date: Wed, 27 Aug 2025 10:05:35 +0800 Subject: [PATCH] up. --- app/common.php | 10 ++++++++++ app/service/FileService.php | 4 ++-- ...lesystemUploadService.php => FilesystemService.php} | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) rename app/service/file/{FilesystemUploadService.php => FilesystemService.php} (99%) diff --git a/app/common.php b/app/common.php index 83b7ca5..0b4eb64 100644 --- a/app/common.php +++ b/app/common.php @@ -1,11 +1,21 @@ filesystem; +} + /** * 写入日志 * @param array|string $event diff --git a/app/service/FileService.php b/app/service/FileService.php index 21ff91d..9f54667 100644 --- a/app/service/FileService.php +++ b/app/service/FileService.php @@ -5,7 +5,7 @@ namespace app\service; use app\entity\SysFileRecord; use app\entity\SysFileRule; use app\entity\UploadFile; -use app\service\file\FilesystemUploadService; +use app\service\file\FilesystemService; use think\File; use think\Service; @@ -19,7 +19,7 @@ class FileService extends Service /* * 注册到全局容器中 */ - $this->app->bind('filesystem', FilesystemUploadService::class); + $this->app->bind('filesystem', FilesystemService::class); } public function upload(string $contextId, File $file, SysFileRule $rule): UploadFile diff --git a/app/service/file/FilesystemUploadService.php b/app/service/file/FilesystemService.php similarity index 99% rename from app/service/file/FilesystemUploadService.php rename to app/service/file/FilesystemService.php index db9227a..a3fddc2 100644 --- a/app/service/file/FilesystemUploadService.php +++ b/app/service/file/FilesystemService.php @@ -14,7 +14,7 @@ use think\facade\Validate; use think\file\UploadedFile; use think\helper\Str; -class FilesystemUploadService +class FilesystemService { protected App $app;