Explorar el Código

Merge branch 'user_country_code'

Roc hace 3 años
padre
commit
c80d1b640e
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      services/user.go

+ 2 - 2
services/user.go

@@ -214,9 +214,9 @@ func BindWxUser(openid, mobile, email string, areaNum, registerPlatform int) (wx
 			Email:               email,
 			IsRegister:          1,
 			Source:              source,
-			CountryCode:         areaNum,
+			CountryCode:         strconv.Itoa(areaNum),
 			OutboundMobile:      mobile,
-			OutboundCountryCode: areaNum,
+			OutboundCountryCode: strconv.Itoa(areaNum),
 		}
 		tmpUserId, addUserErr := models.AddWxUser(user)
 		//添加完成,清除缓存