Explorar o código

fix(新注册用户):入库时,新增国际区号(int类型)

Roc %!s(int64=3) %!d(string=hai) anos
pai
achega
4295497288
Modificáronse 1 ficheiros con 2 adicións e 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)
 		//添加完成,清除缓存