feat: 生成随机md5值

This commit is contained in:
zhangdeman committed 2025-10-14 09:12:28 +08:00
1 parent 78605e0253
commit fbc2c162d5
1 file changed
+6
+6
View File
@@ -72,6 +72,12 @@ func Md5(str string) define.StringResult {
}
}
// RandomMd5 生成随机字符串MD%值
func RandomMd5() define.StringResult {
str := Random(64, "")
return Md5(str)
}
// ClearChar 清理指定字符
func ClearChar(str string, charList ...string) string {
if len(charList) == 0 {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.