diff --git a/app/tools/controller/File.php b/app/tools/controller/File.php index 12fb4116..55e6d8db 100644 --- a/app/tools/controller/File.php +++ b/app/tools/controller/File.php @@ -67,13 +67,7 @@ class File extends BaseController $savename = \think\facade\Filesystem::disk('public') ->putFile($list['serurl'], $file); - $fengefu = DIRECTORY_SEPARATOR; - $fengefu_fan = '/'; - - // 重新组合文件路径 - $savename = str_replace($fengefu_fan, $fengefu, $savename); - - if($isSave==true){ + if( $isSave == true) { $list['url'] = $savename; $list['newname'] = substr($savename ,strripos($savename, $fengefu) + 1 diff --git a/config/filesystem.php b/config/filesystem.php index dc1914d3..c7e19b44 100644 --- a/config/filesystem.php +++ b/config/filesystem.php @@ -15,7 +15,7 @@ return [ // 磁盘类型 'type' => 'local', // 磁盘路径 - 'root' => app()->getRootPath() . 'public\uploads', + 'root' => app()->getRootPath() . "public/uploads", // 磁盘路径对应的外部URL路径 'url' => '/uploads', // 可见性 diff --git a/public/uploads/.gitignore b/public/uploads/.gitignore old mode 100644 new mode 100755 diff --git a/public/uploads/keti/keti.xlsx b/public/uploads/keti/keti.xlsx old mode 100644 new mode 100755 diff --git a/public/uploads/rongyu_teacher/404.png b/public/uploads/rongyu_teacher/404.png old mode 100644 new mode 100755 diff --git a/public/uploads/rongyu_teacher/js_rongyu.xlsx b/public/uploads/rongyu_teacher/js_rongyu.xlsx old mode 100644 new mode 100755 diff --git a/public/uploads/student/student_template.xlsx b/public/uploads/student/student_template.xlsx old mode 100644 new mode 100755 diff --git a/public/uploads/teacher/TeacherInfo.xlsx b/public/uploads/teacher/TeacherInfo.xlsx old mode 100644 new mode 100755