修改文件下载

This commit is contained in:
巴掌 committed 2020-07-18 20:12:14 +08:00
1 parent 733628eb34
commit e170abfdb4
1 file changed
+2 -2
+2 -2
View File
@@ -73,7 +73,7 @@ class Fields extends AdminBase
$oldname = $filist->oldname;
}
$url = public_path() . 'public\\uploads\\' . $filist->url;
$url = public_path() . 'uploads\\' . $filist->url;
$data = file_exists($url);
if ($data === true) {
@@ -81,7 +81,7 @@ class Fields extends AdminBase
} else {
return $this->error('文件不存在!');
}
}