admin
2022-05-12 fa705507ba574c857b1667553737d23b1b7ff495
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package com.ks.app.utils.user;
 
/**
 * @author hxh
 * @title: UserVOUtil
 * @description: TODO
 * @date 2022/4/18 15:45
 */
public class UserVOUtil {
 
    public static String getCoverPhone(String phone) {
        if (phone == null) {
            return phone;
        }
        if (phone.length() >= 5) {
            String st = phone.substring(0, 3);
            st += "******";
            st += phone.substring(phone.length() - 2, phone.length());
            return st;
        }
        return phone;
    }
 
}