修复MVEL加载错误问题

This commit is contained in:
Looly 2023-07-20 08:45:09 +08:00
parent a74a8c7877
commit 2c9d579c59
2 changed files with 7 additions and 5 deletions

View File

@ -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 脱敏之后的银行卡号

View File

@ -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) {