Browse Source

用户是否需要填写区号处理

xingzai 2 years ago
parent
commit
5cfac2246d
1 changed files with 6 additions and 6 deletions
  1. 6 6
      controllers/user.go

+ 6 - 6
controllers/user.go

@@ -1060,12 +1060,12 @@ func (this *UserController) CountryCcode() {
 		br.Ret = 408
 		return
 	}
-	if uid == 0 {
-		br.Msg = "请登录"
-		br.ErrMsg = "请登录,用户信息为空"
-		br.Ret = 408
-		return
-	}
+	//if uid == 0 {
+	//	br.Msg = "请登录"
+	//	br.ErrMsg = "请登录,用户信息为空"
+	//	br.Ret = 408
+	//	return
+	//}
 	resp := new(models.CountryCode)
 	if user.CountryCode == "" && len(user.Mobile) >= 11 {
 		err := models.ChangeUserOutboundMobileByMobile(uid)