This commit is contained in:
aozhiwei 2024-11-05 11:59:18 +08:00
parent 2719426c8a
commit 2b48bbb344

View File

@ -17,9 +17,8 @@ func (this *UserApi) Login(c *gin.Context) {
return return
} }
user := new(model.User) user := new(model.User)
var count int64 = 0 if result := f5.GetApp().GetOrmDb(constant.WHEEL_DB).Table(user.TableName()).Take(
if f5.GetApp().GetOrmDb(constant.WHEEL_DB).Table(user.TableName()).Take(user, user, "account_id = ?", s.GetAccountId()); result.Error != nil {
"account_id = ?", s.GetAccountId()).Count(&count); count < 1 {
c.JSON(200, gin.H{ c.JSON(200, gin.H{
"code": 2, "code": 2,
"message": "mailid不存在", "message": "mailid不存在",