Explorar el Código

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

wanghui hace 8 años
padre
commit
f3b1eaa03d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 {