Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
CCLooMi committed Aug 9, 2019
1 parent bfc0f8f commit 2d5d5db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/fileup/bean/FileTarget.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public FileTarget(Map<String, Object>fileInfo) {
public static boolean fileExist(String id,String suffix) {
return fileWithEnd(id, suffix, "").exists();
}
private static String getFilePath(String id) {
public static String getFilePath(String id) {
long v1=StringUtil.strtol(id.substring(0, 3), 16);
long v2=StringUtil.strtol(id.substring(3, 6), 16);
return "/"+v1/4+"/"+v2/4+"/"+id+"/";
Expand Down Expand Up @@ -175,7 +175,7 @@ public void releaseResource() {
e.printStackTrace();
}
}
private static File fileWithEnd(String id,String suffix,String end) {
public static File fileWithEnd(String id,String suffix,String end) {
File file=null;
String savePath=Config.getConfig("server.file.save.path","upload");
if(Config.decktopWindow) {
Expand Down

0 comments on commit 2d5d5db

Please sign in to comment.