【新增】代码优化

This commit is contained in:
PandaGoAdmin
2022-01-17 17:12:33 +08:00
parent 6af74ab1ba
commit 692e383f3e
10 changed files with 96 additions and 24 deletions

View File

@@ -13,10 +13,31 @@ func DdmKey(data string) string {
return data[:3] + "****" + data[len(data)-3:]
}
func IsDdmKey(data string) bool {
if len(data) > 6 && data[3:len(data)-3] == "****" {
return true
}
return false
}
func DdmMail(data string) string {
return data[:3] + "****" + data[len(data)-8:]
}
func ISDdmMail(data string) bool {
if len(data) > 11 && data[3:len(data)-8] == "****" {
return true
}
return false
}
func DdmPassword(data string) string {
return "******"
}
func IsDdmPassword(data string) bool {
if data == "******" {
return true
}
return false
}