mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
修复MVEL加载错误问题
This commit is contained in:
parent
a74a8c7877
commit
2c9d579c59
@ -309,10 +309,12 @@ public class DesensitizedUtil {
|
||||
/**
|
||||
* 【银行卡号脱敏】由于银行卡号长度不定,所以只展示前4位,后面的位数根据卡号决定展示1-4位
|
||||
* 例如:
|
||||
* 1. "1234 2222 3333 4444 6789 9" ==》"1234 **** **** **** **** 9"
|
||||
* 2. "1234 2222 3333 4444 6789 91" ==》"1234 **** **** **** **** 91"
|
||||
* 3. "1234 2222 3333 4444 678" ==> "1234 **** **** **** 678"
|
||||
* 4. "1234 2222 3333 4444 6789" ==》 "1234 **** **** **** 6789"
|
||||
* <pre>{@code
|
||||
* 1. "1234 2222 3333 4444 6789 9" -> "1234 **** **** **** **** 9"
|
||||
* 2. "1234 2222 3333 4444 6789 91" -> "1234 **** **** **** **** 91"
|
||||
* 3. "1234 2222 3333 4444 678" -> "1234 **** **** **** 678"
|
||||
* 4. "1234 2222 3333 4444 6789" -> "1234 **** **** **** 6789"
|
||||
* }</pre>
|
||||
*
|
||||
* @param bankCardNo 银行卡号
|
||||
* @return 脱敏之后的银行卡号
|
||||
|
@ -495,7 +495,7 @@ public class StrUtil extends CharSequenceUtil implements StrPool {
|
||||
* @param maxBytes 最大字节数
|
||||
* @param factor 速算因子,取该编码下单个字符的最大可能字节数
|
||||
* @param appendDots 截断后是否追加省略号(...)
|
||||
* @return
|
||||
* @return 截断后的字符串
|
||||
*/
|
||||
public static String truncateByByteLength(String str, Charset charset, int maxBytes, int factor,
|
||||
boolean appendDots) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user