From 2366693fa0da4dcdfb7cd3a27c76afa35ea07197 Mon Sep 17 00:00:00 2001 From: jiangjiazhi Date: Wed, 26 Oct 2016 18:16:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=A7=E6=9C=BA=E5=8F=B7=20=E6=9B=BF?= =?UTF-8?q?=E6=8D=A2=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/lyms/platform/common/utils/StringUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform-common/src/main/java/com/lyms/platform/common/utils/StringUtils.java b/platform-common/src/main/java/com/lyms/platform/common/utils/StringUtils.java index ebe3872..b5aed44 100644 --- a/platform-common/src/main/java/com/lyms/platform/common/utils/StringUtils.java +++ b/platform-common/src/main/java/com/lyms/platform/common/utils/StringUtils.java @@ -107,7 +107,7 @@ public final class StringUtils { public static String encryPhone(String phone) { if (isNotEmpty(phone)) { - char[] res = new char[11]; + char[] res = new char[phone.length()]; char[] chars = phone.toCharArray(); if (chars != null && chars.length == 11) { for (int i = 0; i < chars.length; i++) { -- 1.8.3.1