This commit is contained in:
aozhiwei 2024-11-05 11:47:20 +08:00
parent 6a69777c87
commit 2719426c8a

View File

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