order address apis
This commit is contained in:
@@ -124,6 +124,13 @@ func DecryptPhone(phone string) (string, Error) {
|
||||
return newPhone, nil
|
||||
}
|
||||
|
||||
func DecryptPhoneReplace(mobile string) string {
|
||||
if len(mobile) < NumberEleven {
|
||||
return mobile
|
||||
}
|
||||
return mobile[:NumberThree] + "****" + mobile[NumberSeven:NumberEleven]
|
||||
}
|
||||
|
||||
func GetSearchPhone(mobile string) string {
|
||||
phone := StringEmpty
|
||||
if len(mobile) == 11 {
|
||||
|
||||
Reference in New Issue
Block a user