【修改】修改下载接口bug
This commit is contained in:
+1
-1
@@ -130,7 +130,7 @@ public class CommonController {
|
|||||||
String fileName = "";
|
String fileName = "";
|
||||||
if(CommonConstant.UPLOAD_TYPE_LOCAL.equals(uploadType)){
|
if(CommonConstant.UPLOAD_TYPE_LOCAL.equals(uploadType)){
|
||||||
//本地下载
|
//本地下载
|
||||||
String filePath = uploadpath + File.separator + fileName;
|
String filePath = uploadpath + File.separator + fileUrl;
|
||||||
File file = new File(filePath);
|
File file = new File(filePath);
|
||||||
if(!file.exists()){
|
if(!file.exists()){
|
||||||
response.setStatus(404);
|
response.setStatus(404);
|
||||||
|
|||||||
Reference in New Issue
Block a user