mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-09-11 05:15:48 +08:00
Merge branch 'tuoyun' of github.com:OpenIMSDK/Open-IM-Server into tuoyun
This commit is contained in:
commit
188ca8fc58
@ -37,7 +37,7 @@ func Login(c *gin.Context) {
|
|||||||
|
|
||||||
r, err := im_mysql_model.GetRegister(account)
|
r, err := im_mysql_model.GetRegister(account)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.NewError(params.OperationID, "user have not register", params.Password, account)
|
log.NewError(params.OperationID, "user have not register", params.Password, account, err.Error())
|
||||||
c.JSON(http.StatusOK, gin.H{"errCode": constant.NotRegistered, "errMsg": "Mobile phone number is not registered"})
|
c.JSON(http.StatusOK, gin.H{"errCode": constant.NotRegistered, "errMsg": "Mobile phone number is not registered"})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@ func GetRegister(account string) (*db.Register, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
var r db.Register
|
var r db.Register
|
||||||
return &r, dbConn.Table("registers").Where("account = ?",
|
return &r, dbConn.Debug().Table("registers").Where("account = ?",
|
||||||
account).Take(&r).Error
|
account).Take(&r).Error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user