修复退出登录sql参数错误的问题
This commit is contained in:
parent
a79bec5308
commit
6e2f9e9d90
@ -89,7 +89,7 @@ func Logout(token string) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
global.DB.Table("login_logs").Where("token = ?", token).Update("logout_time", utils.NowJsonTime())
|
global.DB.Table("login_logs").Where("id = ?", token).Update("logout_time", utils.NowJsonTime())
|
||||||
|
|
||||||
loginLogs, err := FindAliveLoginLogsByUserId(loginLog.UserId)
|
loginLogs, err := FindAliveLoginLogsByUserId(loginLog.UserId)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user