소스 검색

fix some codestyle problem

陈精华 1 년 전
부모
커밋
f74d93a835

+ 1 - 1
server/src/main/java/cn/keking/config/ConfigConstants.java

@@ -72,7 +72,7 @@ public class ConfigConstants {
     public static final String DEFAULT_SIZE = "500MB";
     public static final String DEFAULT_PROHIBIT = "exe,dll";
     public static final String DEFAULT_PASSWORD = "123456";
-    public static final String DEFAULT_PDF2_JPG_DPI_DISABLE = "105";
+    public static final String DEFAULT_PDF2_JPG_DPI = "105";
     public static final String DEFAULT_DELETE_SOURCE_FILE = "true";
 
     public static Boolean isCacheEnabled() {

+ 1 - 1
server/src/main/java/cn/keking/config/ConfigRefreshComponent.java

@@ -88,7 +88,7 @@ public class ConfigRefreshComponent {
                     beiAn = properties.getProperty("beiAn", ConfigConstants.DEFAULT_BEIAN);
                     prohibit = properties.getProperty("prohibit", ConfigConstants.DEFAULT_PROHIBIT);
                     password = properties.getProperty("sc.password", ConfigConstants.DEFAULT_PASSWORD);
-                    pdf2JpgDpi = Integer.parseInt(properties.getProperty("pdf2jpg.dpi", ConfigConstants.DEFAULT_PDF2_JPG_DPI_DISABLE));
+                    pdf2JpgDpi = Integer.parseInt(properties.getProperty("pdf2jpg.dpi", ConfigConstants.DEFAULT_PDF2_JPG_DPI));
                     deleteSourceFile =  Boolean.parseBoolean(properties.getProperty("delete.source.file", ConfigConstants.DEFAULT_DELETE_SOURCE_FILE));
                     prohibitArray = prohibit.split(",");