Commit 2366693fa0da4dcdfb7cd3a27c76afa35ea07197
1 parent
a95c28d5a3
Exists in
master
and in
1 other branch
座机号 替换的问题
Showing 1 changed file with 1 additions and 1 deletions
platform-common/src/main/java/com/lyms/platform/common/utils/StringUtils.java
View file @
2366693
... | ... | @@ -107,7 +107,7 @@ |
107 | 107 | |
108 | 108 | public static String encryPhone(String phone) { |
109 | 109 | if (isNotEmpty(phone)) { |
110 | - char[] res = new char[11]; | |
110 | + char[] res = new char[phone.length()]; | |
111 | 111 | char[] chars = phone.toCharArray(); |
112 | 112 | if (chars != null && chars.length == 11) { |
113 | 113 | for (int i = 0; i < chars.length; i++) { |