From b26da15df0f71a11e7d04abd0aa2284d8b8cdef0 Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期三, 24 七月 2024 17:22:21 +0800 Subject: [PATCH] 提交 --- server/service/src/main/java/com/doumee/core/utils/Constants.java | 32 +++++++++++++++++++++----------- 1 files changed, 21 insertions(+), 11 deletions(-) diff --git a/server/service/src/main/java/com/doumee/core/utils/Constants.java b/server/service/src/main/java/com/doumee/core/utils/Constants.java index 6a4960e..3305881 100644 --- a/server/service/src/main/java/com/doumee/core/utils/Constants.java +++ b/server/service/src/main/java/com/doumee/core/utils/Constants.java @@ -53,9 +53,6 @@ public static final String HK_ROOTORG_CODE ="HK_ROOTORG_CODE" ; public static final String HK_ROOTORG_NAME ="HK_ROOTORG_NAME" ; public static final String REDIS_TOKEN_KEY = "token_"; - public static final String CUSTOMER = "CUSTOMER"; - public static final String BUSINESS = "BUSINESS"; - //琚嫓璁夸汉淇℃伅鏍¢獙鏂瑰紡锛�0鎵嬫満鍙峰崟鐙牎楠� 1鎵嬫満鍙峰拰濮撳悕缁勫悎鏍¢獙锛� public static final String ZBOM_CRM_AUTH_API_KEY = "ZBOM_CRM_AUTH_API_KEY"; @@ -334,6 +331,7 @@ public static final String WEIXIN_DEFAULT_IMGS = "WEIXIN_DEFAULT_IMGS"; public static final String USER_CARD_DEFAULT_IMG = "USER_CARD_DEFAULT_IMG"; public static final String USERS_FILE = "USERS_FILE"; + public static final String SHARES_FILE = "SHARES_FILE"; public static final String NEWS_FILE = "NEWS_FILE"; public static final String USER_LABEL = "USER_LABEL"; //鍙戦�佷細璁紑濮� 瀹氭椂鎻愬墠澶氬皯鍒嗛挓鍙戦�� @@ -351,6 +349,7 @@ public static final String WX_PLATFORM = "WX_PLATFORM"; public static final String ZBOM_ZHONGTAI_API_URL = "ZBOM_ZHONGTAI_API_URL"; + public static final String ZBOM_ZHONGTAI_SYS_API_URL = "ZBOM_ZHONGTAI_SYS_API_URL"; public static final String WX_PLATFORM_ACCESS_TOKEN = "WX_PLATFORM_ACCESS_TOKEN"; public static final String ZBOM_ENCODE_URL = "ZBOM_ENCODE_URL"; public static final String WX_PLATFORM_APPID = "WX_PLATFORM_APPID"; @@ -366,12 +365,14 @@ public static final String WX_MINI_CONFIG = "WX_MINI_CONFIG"; + public static final String SHARE_HAIBAO_HEADER_TITLE = "SHARE_HAIBAO_HEADER_TITLE"; public static final String WX_APPID_CUSTOMER = "WX_APPID_CUSTOMER"; public static final String WX_SECRET_CUSTOMER = "WX_SECRET_CUSTOMER"; public static final String WX_APPID_PERSONNEL = "WX_APPID_PERSONNEL"; public static final String WX_SECRET_PERSONNEL = "WX_SECRET_PERSONNEL"; public static final String WX_TOKEN_CUSTOMER = "WX_TOKEN_CUSTOMER"; public static final String WX_TOKEN_PERSONNEL = "WX_TOKEN_PERSONNEL"; + public static final String ZBOM_CRM_POSTCUS_API_KEY = "ZBOM_CRM_POSTCUS_API_KEY"; public interface RedisKeys { @@ -385,6 +386,9 @@ String ZBOM_ENCODE_URL ="ZBOM_ENCODE_URL"; String ZBOM_SMS_API_KEY ="ZBOM_SMS_API_KEY"; String ZBOM_ZHONGTAI_API_URL ="ZBOM_ZHONGTAI_API_URL"; + String ZBOM_ZHONGTAI_SYS_API_URL ="ZBOM_ZHONGTAI_SYS_API_URL"; + String ZBOM_CRM_POSTCUS_API_KEY ="ZBOM_CRM_POSTCUS_API_KEY"; + String ZBOM_AREA_REDIS_KEY ="ZBOM_AREA_REDIS_KEY"; String ZBOM_SMS_API_URL ="ZBOM_SMS_API_URL"; String IAM_APPKEY ="IAM_APPKEY"; String SHOP_TREE ="SHOP_TREE"; @@ -519,6 +523,11 @@ } return null; } + + public static String desensitizationPhone(String phone) { + return phone.replaceAll("(\\d{3})\\d{4}(\\d{4})", "$1****$2"); + } + public enum VehiclePlateNoEnum { @@ -706,19 +715,20 @@ Response response = client.newCall(request).execute(); if (response.isSuccessful()) { InputStream inputStream = new ByteArrayInputStream(response.body().bytes()); -// ByteArrayOutputStream baos = new ByteArrayOutputStream(); -// byte[] buffer = new byte[1024]; -// int len = -1; -// while ((len = inputStream.read(buffer)) != -1) { -// baos.write(buffer, 0, len); -// } -// System.out.println("data:mediatype;base64," + Base64.getEncoder().encodeToString(baos.toByteArray())); + /* ByteArrayOutputStream baos = new ByteArrayOutputStream(); + byte[] buffer = new byte[1024]; + int len = -1; + while ((len = inputStream.read(buffer)) != -1) { + baos.write(buffer, 0, len); + } + System.out.println("data:mediatype;base64," + Base64.getEncoder().encodeToString(baos.toByteArray()));*/ return inputStream; } } catch (Exception e) { e.printStackTrace(); } - throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"鐢熸垚鍥剧墖澶辫触"); + return null; +// throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"鐢熸垚鍥剧墖澶辫触"); } -- Gitblit v1.9.3