From 28eeedaff64ab25b6a38aa443e9d46597b8e3495 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期一, 09 一月 2023 14:59:57 +0800 Subject: [PATCH] 1 --- src/main/java/com/lf/server/entity/all/StaticData.java | 63 ++++++++++++++++++++++--------- 1 files changed, 44 insertions(+), 19 deletions(-) diff --git a/src/main/java/com/lf/server/entity/all/StaticData.java b/src/main/java/com/lf/server/entity/all/StaticData.java index 8734fc6..64ac1ed 100644 --- a/src/main/java/com/lf/server/entity/all/StaticData.java +++ b/src/main/java/com/lf/server/entity/all/StaticData.java @@ -50,9 +50,9 @@ public static final double D1050 = 1050.0; /** - * 16杩涘埗 + * 绛夊彿 */ - public static final char[] HEX_DIGITS = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}; + public final static String EQ = "="; /** * 瀛楃鐐� @@ -65,9 +65,19 @@ public final static String COMMA = ","; /** - * 绛夊彿 + * zip鏂囦欢 */ - public final static String EQ = "="; + public final static String ZIP = ".zip"; + + /** + * xls鏂囦欢 + */ + public final static String XLS = ".xls"; + + /** + * xlsx鏂囦欢 + */ + public final static String XLSX = ".xlsx"; /** * 鐗堟湰鍙� @@ -85,24 +95,14 @@ public final static String TOKEN_COOKIE_KEY = "token"; /** - * Cookie涓璬ruid閿� - */ - public final static String DRUID_COOKIE_KEY = "JSESSIONID"; - - /** * 鏂囨湰缂栫爜鏂瑰紡 */ public final static String TEXT_ENCODER = "UTF-8"; /** - * 瀵嗙爜姝e垯琛ㄨ揪寮� + * 鎬昏川妫� */ - public final static String PWD_REG = "^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![a-z0-9]+$)(?![a-z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)[a-zA-Z0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]{12,20}$"; - - /** - * 涓婁紶鏂囦欢绫诲瀷 - */ - public final static String FILE_TYPES = "'xls','shp','gdb','mdb'"; + public final static String CHECK_MAIN = "checkMain"; /** * Object瀵硅薄 @@ -110,9 +110,29 @@ public final static String OBJECT = "java.lang.Object"; /** + * Cookie涓璬ruid閿� + */ + public final static String DRUID_COOKIE_KEY = "JSESSIONID"; + + /** + * 涓婁紶鏂囦欢绫诲瀷 + */ + public final static String FILE_TYPES = "'xls','shp','gdb','mdb'"; + + /** + * 16杩涘埗 + */ + public static final char[] HEX_DIGITS = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}; + + /** + * 瀵嗙爜姝e垯琛ㄨ揪寮� + */ + public final static String PWD_REG = "^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![a-z0-9]+$)(?![a-z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)[a-zA-Z0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]{12,20}$"; + + /** * MPT鏂囦欢鎵╁睍鍚� */ - public final static List<String> MPT_EXTENSION = new ArrayList<>(Arrays.asList(".mpt", ".mIdx", ".Strmi")); + public final static List<String> MPT_EXTENSION = new ArrayList<>(Arrays.asList(".mpt", ".midx", ".strmi")); /** * IMG鏂囦欢鎵╁睍鍚� @@ -122,7 +142,12 @@ /** * TIF鏂囦欢鎵╁睍鍚� */ - public final static List<String> TIF_EXTENSION = new ArrayList<>(Arrays.asList(".tif", ".prj", ".tfw", ".tfw", ".tif.ovr", ".tif.aux.xml", ".tif.enp", ".tif.xml")); + public final static List<String> TIF_EXTENSION = new ArrayList<>(Arrays.asList(".tif", ".prj", ".tfw", ".tif.ovr", ".tif.aux.xml", ".tif.enp", ".tif.xml")); + + /** + * TIFF鏂囦欢鎵╁睍鍚� + */ + public final static List<String> TIFF_EXTENSION = new ArrayList<>(Arrays.asList(".tiff", ".prj", ".tfw", ".tiff.ovr", ".tiff.aux.xml", ".tiff.enp", ".tiff.xml")); /** * SHP鏂囦欢鎵╁睍鍚� @@ -132,7 +157,7 @@ /** * 鎵�鏈夋枃浠舵墿灞曞悕 */ - public final static List<String> ALL_EXTENSION = new ArrayList<>(Arrays.asList(".txt", ".xml", ".pdf", ".xls", ".xlsx", ".doc", ".docx", ".ppt", ".pptx", ".shp", ".gdb", ".mdb", ".dwg", ".las", ".laz", ".cpt", ".mpt", ".fly", ".efb", ".g3d", ".fbx", ".obj", ".3dm", ".3dml", ".osgb", ".rvt", ".ifc", ".jpg", ".png", ".img", ".tif", ".bmp", ".gif", ".rmvb", ".rm", ".mp3", ".mp4", ".avi", ".wma", ".wmv", ".7z", ".rar", ".zip")); + public final static List<String> ALL_EXTENSION = new ArrayList<>(Arrays.asList(".txt", ".xml", ".pdf", ".xls", ".xlsx", ".doc", ".docx", ".ppt", ".pptx", ".shp", ".gdb", ".mdb", ".dwg", ".las", ".laz", ".cpt", ".mpt", ".fly", ".efb", ".g3d", ".fbx", ".obj", ".3dm", ".3dml", ".osgb", ".rvt", ".ifc", ".jpg", ".png", ".img", ".tif", ".tiff", ".bmp", ".gif", ".rmvb", ".rm", ".mp3", ".mp4", ".avi", ".wma", ".wmv", ".7z", ".rar", ".zip")); /** * 鎻掑叆鎺掗櫎瀛楁 -- Gitblit v1.9.3