|
@@ -511,7 +511,7 @@ func SyncWhiteList(cont context.Context) (err error) {
|
|
|
if _, ok := syncedMap[v.Mobile+v.Email]; ok {
|
|
|
user := models.ComeinWhiteUser{
|
|
|
Mobile: v.Mobile,
|
|
|
- CountryCode: v.CountryCode,
|
|
|
+ CountryCode: "+"+v.CountryCode,
|
|
|
Email: v.Email,
|
|
|
IsFake: 0,
|
|
|
}
|
|
@@ -555,7 +555,7 @@ func syncWhiteList(list []*models.ComeinWhiteUser, opt int) (err error) {
|
|
|
whiteUser := yb.Whitelist{}
|
|
|
if v.Mobile != "" {
|
|
|
whiteUser.Phone = v.Mobile
|
|
|
- whiteUser.Areacode = v.CountryCode
|
|
|
+ whiteUser.Areacode = "+" + v.CountryCode
|
|
|
whiteUser.Guid = utils.MD5(strconv.Itoa(v.UserId))
|
|
|
|
|
|
whiteList = append(whiteList, whiteUser)
|