“升级TP6.3.0
This commit is contained in:
1 parent
65f62275a1
commit
c3317b9b79
92 files changed
+1662
-627
No files matched your search
@@ -74,7 +74,14 @@ class Fields extends BaseController
|
||||
}
|
||||
|
||||
$url = public_path() . 'public\\uploads\\' . $filist->url;
|
||||
return download($url, $oldname);
|
||||
|
||||
$data = file_exists($url);
|
||||
if ($data === true) {
|
||||
return download($url, $oldname);
|
||||
} else {
|
||||
return $this->error('文件不存在!');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user