- GoodsOrder.ConsigneeMobile2 for real user mobile.
This commit is contained in:
@@ -190,7 +190,11 @@ func Int2OneZero(value int) int {
|
||||
|
||||
// 判断电话号码是否是假的,比如有****号
|
||||
func IsMobileFake(mobile string) bool {
|
||||
return utils.Str2Int64WithDefault(strings.Replace(strings.Replace(mobile, "-", "", -1), ",", "", -1), 0) == 0
|
||||
return utils.Str2Int64WithDefault(FormalizeMobile(mobile), 0) == 0
|
||||
}
|
||||
|
||||
func FormalizeMobile(mobile string) string {
|
||||
return strings.Replace(strings.Replace(mobile, "-", "", -1), ",", "", -1)
|
||||
}
|
||||
|
||||
func IsLegalStoreID(id int) bool {
|
||||
|
||||
Reference in New Issue
Block a user