Browse Source

Merge remote-tracking branch 'origin/dev' into test

wanghui 8 years ago
parent
commit
f3b1eaa03d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/goafanti/common/utils/FileUtils.java

+ 1 - 1
src/main/java/com/goafanti/common/utils/FileUtils.java

@@ -112,7 +112,7 @@ public class FileUtils {
 			uniq = true;
 		}
 		String fileName = "";
-		if (isPrivate || sign != "") {
+		if (isPrivate || StringUtils.isNotBlank(sign)) {
 			if (uniq) {
 				fileName = path + uid + "/" + System.nanoTime() + "_" + sign + suffix;
 			} else {