|
@@ -274,14 +274,3 @@ func isEmail(value string) bool {
|
|
|
var emailPattern = regexp.MustCompile("^([a-zA-Z0-9_\\-\\.]+)@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\\]?)$")
|
|
|
return emailPattern.MatchString(value)
|
|
|
}
|
|
|
-
|
|
|
-func GetDataPkgPhone(userId string) string {
|
|
|
- lastPhone := ""
|
|
|
- userData, _ := MQFW.FindById("user", userId, `{"s_phone":1,"s_m_phone":1}`)
|
|
|
- if userData != nil && len(*userData) > 0 {
|
|
|
- if lastPhone == "" {
|
|
|
- lastPhone, _ = util.If((*userData)["s_phone"] != nil, (*userData)["s_phone"], (*userData)["s_m_phone"]).(string)
|
|
|
- }
|
|
|
- }
|
|
|
- return lastPhone
|
|
|
-}
|