Authored by bblu

昵称如果是11位数字,掩盖中间4位为*

... ... @@ -70,6 +70,10 @@ public class DrawlineList2MapServiceImpl implements IDrawlineList2MapService {
if (null == userBaseRspBO) {
continue;
}
String nickname = userBaseRspBO.getNickname();
if (nickname.matches("\\d{11}")) {
userBaseRspBO.setNickname(nickname.substring(0, 3) + "****" + nickname.substring(7));
}
userBaseRspBOMap.put(userBaseRspBO.getUid(), userBaseRspBO);
}
... ... @@ -140,5 +144,9 @@ public class DrawlineList2MapServiceImpl implements IDrawlineList2MapService {
logger.debug("Outer getDrawlineUserQueueMap. activityId is {}, uidList is {}, drawlineUserQueueMap is {}", activityId, uidList, drawlineUserQueueMap);
return drawlineUserQueueMap;
}
public static void main(String[] args) {
System.out.println("11111234567".matches("\\d{11}"));
}
}
... ...