k94314517
2024-08-07 031ead5480c61bb7492079b7473940ed53d5e822
server/service/src/main/java/com/doumee/core/utils/Constants.java
@@ -339,6 +339,7 @@
    public static final String SHARES_FILE = "SHARES_FILE";
    public static final String NEWS_FILE = "NEWS_FILE";
    public static final String USER_LABEL = "USER_LABEL";
    public static final String USERS_MANAGE_CODE = "USERS_MANAGE_CODE";
    //发送会议开始  定时提前多少分钟发送
    public static final String SYSTEM ="SYSTEM";
@@ -494,15 +495,15 @@
        StringBuffer stringBuffer = new StringBuffer();
        for (int i = 0; i < arr.length; i++) {
            if(i==0){
                stringBuffer.append( i + "室");
                stringBuffer.append( arr[i] + "室");
            }else if(i==1){
                stringBuffer.append( i + "厅");
                stringBuffer.append( arr[i] + "厅");
            }else if(i==2){
                stringBuffer.append( i + "厨");
                stringBuffer.append( arr[i] + "厨");
            }else if(i==3){
                stringBuffer.append( i + "卫");
                stringBuffer.append( arr[i] + "卫");
            }else if(i==4){
                stringBuffer.append( i + "阳");
                stringBuffer.append( arr[i] + "阳");
            }else {
                break;
            }
@@ -530,7 +531,10 @@
    }
    public static String desensitizationPhone(String phone)  {
        return phone.replaceAll("(d{3})d{4}(d{4})", "$1****$2");
        if (phone == null || phone.length() != 11) {
            return phone;
        }
        return phone.substring(0, 3) + "****" + phone.substring(7);
    }
@@ -684,6 +688,7 @@
        if(env_version.equals("release")&&StringUtils.isNotBlank(page)){
            body.put("page", page);
        }
//        body.put("page", "pages/index/index");
        // 透明,根据你的场景自行设置body参数
        body.put("is_hyaline", true);
        OkHttpClient client = new OkHttpClient().newBuilder().build();
@@ -695,7 +700,7 @@
            Response response = client.newCall(request).execute();
            if (response.isSuccessful()) {
                InputStream inputStream = new ByteArrayInputStream(response.body().bytes());
               /*ByteArrayOutputStream baos = new ByteArrayOutputStream();
              /* ByteArrayOutputStream baos = new ByteArrayOutputStream();
                    byte[] buffer = new byte[1024];
                    int len = -1;
                    while ((len = inputStream.read(buffer)) != -1) {