登录时设置手机号和openid为必填

This commit is contained in:
2024-08-30 14:15:29 +08:00
parent f66d50d142
commit d68fab94cd
2 changed files with 2 additions and 14 deletions
-12
View File
@@ -32,18 +32,6 @@ func (r *Login) Login(c *gin.Context) {
return
}
if req.OpenId == "" && req.Mobile == "" {
responses.FailWithMessage("登陆失败", c)
return
}
if req.Source == 1 {
if req.Mobile != "" {
responses.FailWithMessage("登陆失败", c)
return
}
}
// 开始事务
tx := global.Db.Begin()
defer func() {