This commit is contained in:
2024-08-13 15:41:48 +08:00
parent 10e79a35db
commit fbab0c40a7
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -6,6 +6,7 @@ import (
)
// MaskNameStr 用户名掩码
// maskType 加密类型(1:三个字符或三个字符以上掐头取尾,中间用*代替 首字母保留,后两位用*代替)
func MaskNameStr(str string, maskType int) string {
if str == "" {
return str