Commit 674901c4 authored by hezhen's avatar hezhen

123

parent c4ef8fcc
...@@ -278,7 +278,7 @@ public class UploadService { ...@@ -278,7 +278,7 @@ public class UploadService {
String filePath = avatar + userId % 1000; String filePath = avatar + userId % 1000;
File file=new File(baseUploadPath+filePath); File file=new File(baseUploadPath+filePath);
if(!file.exists()){//如果文件夹不存在 if(!file.exists()){//如果文件夹不存在
file.mkdir();//创建文件夹 file.mkdirs();//创建文件夹
} }
String realFileRelPath= filePath + "/" + userId + ".jpg"; String realFileRelPath= filePath + "/" + userId + ".jpg";
//文件存放路径 //文件存放路径
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment