From 5573ab68a6bf98014e6948d0c5ab538a90ce0ada Mon Sep 17 00:00:00 2001 From: sws <15810472099@163.com> Date: 星期六, 14 一月 2023 09:46:15 +0800 Subject: [PATCH] 1 --- src/main/java/com/lf/server/entity/all/StaticData.java | 119 +++++++++++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 107 insertions(+), 12 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 00e885b..2918e1d 100644 --- a/src/main/java/com/lf/server/entity/all/StaticData.java +++ b/src/main/java/com/lf/server/entity/all/StaticData.java @@ -10,9 +10,9 @@ */ public class StaticData { /** - * 鏉冮檺鎺掗櫎璺緞锛�/proxy + * 鏉冮檺鎺掗櫎璺緞锛�/proxy锛岃姹傚叏閮ㄥ皬鍐� */ - public static String[] EXCLUDE_PATH = new String[]{"/swagger", "/sign/", "/error", "/floatserver"}; + public static String[] EXCLUDE_PATH = new String[]{"/swagger", "/sign/", "/fmeit/", "/perms/", "/floatserver/", "/error"}; /** * 鏁板�硷細4 @@ -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 = "="; /** * 瀛楃鐐� @@ -60,9 +60,64 @@ public final static String POINT = "."; /** - * 绛夊彿 + * 閫楀彿 */ - public final static String EQ = "="; + public final static String COMMA = ","; + + /** + * 姝f枩鏉� + */ + public final static String SLASH = "/"; + + /** + * zip鏂囦欢 + */ + public final static String ZIP = ".zip"; + + /** + * xls鏂囦欢 + */ + public final static String XLS = ".xls"; + + /** + * xlsx鏂囦欢 + */ + public final static String XLSX = ".xlsx"; + + /** + * MDB鏂囦欢 + */ + public final static String MDB = ".mdb"; + + /** + * SHP鏂囦欢 + */ + public final static String SHP = ".shp"; + + /** + * GDB鏂囦欢 + */ + public final static String GDB = ".gdb"; + + /** + * IMG鏂囦欢 + */ + public final static String IMG = ".img"; + + /** + * MPT鏂囦欢 + */ + public final static String MPT = ".mpt"; + + /** + * TIF鏂囦欢 + */ + public final static String TIF = ".tif"; + + /** + * TIFF鏂囦欢 + */ + public final static String TIFF = ".tiff"; /** * 鐗堟湰鍙� @@ -80,14 +135,34 @@ public final static String TOKEN_COOKIE_KEY = "token"; /** + * 鏂囨湰缂栫爜鏂瑰紡 + */ + public final static String TEXT_ENCODER = "UTF-8"; + + /** + * 鎬昏川妫� + */ + public final static String CHECK_MAIN = "checkMain"; + + /** + * Object瀵硅薄 + */ + public final static String OBJECT = "java.lang.Object"; + + /** * Cookie涓璬ruid閿� */ public final static String DRUID_COOKIE_KEY = "JSESSIONID"; /** - * 鏂囨湰缂栫爜鏂瑰紡 + * 涓婁紶鏂囦欢绫诲瀷 * */ - public final static String TEXT_ENCODER = "UTF-8"; + 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垯琛ㄨ揪寮� @@ -95,14 +170,34 @@ 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 String FILE_TYPES = "'xls','shp','gdb','mdb'"; + public final static List<String> MPT_EXT = new ArrayList<>(Arrays.asList(".midx", ".strmi")); /** - * Object瀵硅薄 + * IMG鏂囦欢鎵╁睍鍚� */ - public final static String OBJECT = "java.lang.Object"; + public final static List<String> IMG_EXT = new ArrayList<>(Arrays.asList(".rrd", ".img.aux.xml", ".hdr", ".img.enp", ".img.xml")); + + /** + * TIF鏂囦欢鎵╁睍鍚� + */ + public final static List<String> TIF_EXT = new ArrayList<>(Arrays.asList(".prj", ".tfw", ".tif.ovr", ".tif.aux.xml", ".tif.enp", ".tif.xml")); + + /** + * TIFF鏂囦欢鎵╁睍鍚� + */ + public final static List<String> TIFF_EXT = new ArrayList<>(Arrays.asList(".prj", ".tfw", ".tiff.ovr", ".tiff.aux.xml", ".tiff.enp", ".tiff.xml")); + + /** + * SHP鏂囦欢鎵╁睍鍚� + */ + public final static List<String> SHP_EXT = new ArrayList<>(Arrays.asList(".shx", ".dbf", ".prj", ".cpg")); + + /** + * 鎵�鏈夋枃浠舵墿灞曞悕 + */ + 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