- GoodsOrder.ConsigneeMobile2 for real user mobile.

This commit is contained in:
gazebo
2019-01-08 18:21:50 +08:00
parent bffc72f751
commit b6f1dc8721
10 changed files with 49 additions and 13 deletions

View File

@@ -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 {