wiki功能开发

This commit is contained in:
暮光:城中城
2019-03-06 23:39:38 +08:00
parent 3c29cac2d7
commit c37586d596
3 changed files with 154 additions and 108 deletions

View File

@@ -53,7 +53,7 @@ public class WikiCommonController {
DocUserDetails currentUser = DocUserUtil.getCurrentUser();
String path = uploadPath + "/" + DateTime.now().toString("yyyy/MM/dd") + "/";
File newFile = new File(path);
if (!newFile.exists() && !newFile.mkdir()) {
if (!newFile.exists() && !newFile.mkdirs()) {
return DocResponseJson.warn("创建文件夹失败");
}
String simpleUUID = RandomUtil.simpleUUID();