From ca553bbe5d83807c7768081d6d5a7db3cbb32537 Mon Sep 17 00:00:00 2001 From: ZJY <764763903@qq.com> Date: Sat, 4 Sep 2021 00:41:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/db.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/db.go b/models/db.go index 673cf36..72899c8 100644 --- a/models/db.go +++ b/models/db.go @@ -201,13 +201,13 @@ func (ck *JdCookie) InPoolWskey(wskey string) error { tx := db.Begin() jp := &JdCookiePool{} logs.Info(ck.PtPin) - logs.Info(ck.WsKey) + logs.Info(wskey) if tx.Where(fmt.Sprintf("%s = '%s'", PtPin, ck.PtPin)).First(jp).Error == nil { return tx.Rollback().Error } if err := tx.Create(&JdCookiePool{ PtPin: ck.PtPin, - WsKey: wskey, + WsKey: ck.WsKey, CreateAt: date, }).Error; err != nil { tx.Rollback()