| | |
| | | import com.yeshi.buwan.domain.user.LoginUser; |
| | | import com.yeshi.buwan.domain.user.LoginUserExtra; |
| | | import com.yeshi.buwan.domain.vip.UserVIPInfo; |
| | | import com.yeshi.buwan.pptv.PPTVUtil; |
| | | import com.yeshi.buwan.videos.pptv.PPTVUtil; |
| | | import com.yeshi.buwan.util.StringUtil; |
| | | import com.yeshi.buwan.vo.client.user.UserInfoVO; |
| | | |
| | |
| | | return openId.substring(0, 4) + "****" + openId.substring(openId.length() - 4, openId.length() - 4); |
| | | } |
| | | |
| | | private static String getHiddenEmail(String email) { |
| | | public static String getHiddenEmail(String email) { |
| | | if (StringUtil.isNullOrEmpty(email)) { |
| | | return null; |
| | | } |
| | |
| | | String prefix = email.substring(0, index); |
| | | if (prefix.length() < 2) |
| | | return prefix.substring(0, 1) + "**" + email.substring(index, email.length()); |
| | | return prefix.substring(0, 2) + "**" + email.substring(index, email.length()); |
| | | return prefix.substring(0, 2) + "****" + email.substring(index, email.length()); |
| | | } |
| | | |
| | | |