From 6e2f9e9d9038b68efa462b554069a921ec532dbd Mon Sep 17 00:00:00 2001 From: dushixiang <798148596@qq.com> Date: Mon, 22 Feb 2021 22:17:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=80=E5=87=BA=E7=99=BB?= =?UTF-8?q?=E5=BD=95sql=E5=8F=82=E6=95=B0=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/model/login-log.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/model/login-log.go b/pkg/model/login-log.go index 03c279c..295f4fc 100644 --- a/pkg/model/login-log.go +++ b/pkg/model/login-log.go @@ -89,7 +89,7 @@ func Logout(token string) { 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) if err != nil {