- 修改IsMobileFake,13位及以上为非真实号
This commit is contained in:
@@ -220,7 +220,7 @@ func Int2OneZero(value int) int {
|
|||||||
|
|
||||||
// 判断电话号码是否是假的,比如有****号
|
// 判断电话号码是否是假的,比如有****号
|
||||||
func IsMobileFake(mobile string) bool {
|
func IsMobileFake(mobile string) bool {
|
||||||
return len(mobile) > 13 || mobile == ""
|
return len(mobile) >= 13 || mobile == ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func FormalizeMobile(mobile string) string {
|
func FormalizeMobile(mobile string) string {
|
||||||
|
|||||||
Reference in New Issue
Block a user