From 2ef5f7c07d10fa63e14bca0dbec42230e93d371a Mon Sep 17 00:00:00 2001 From: ZJY <764763903@qq.com> Date: Sat, 4 Sep 2021 00:46:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=8F=82=E6=95=B0=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/db.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models/db.go b/models/db.go index 72899c8..1e9040f 100644 --- a/models/db.go +++ b/models/db.go @@ -195,13 +195,13 @@ func (ck *JdCookie) Update(column string, value interface{}) { } } -func (ck *JdCookie) InPoolWskey(wskey string) error { +func (ck *JdCookie) InPoolWskey(ws_key string) error { if ck.ID != 0 { date := Date() tx := db.Begin() jp := &JdCookiePool{} logs.Info(ck.PtPin) - logs.Info(wskey) + logs.Info(ws_key) if tx.Where(fmt.Sprintf("%s = '%s'", PtPin, ck.PtPin)).First(jp).Error == nil { return tx.Rollback().Error } @@ -215,7 +215,7 @@ func (ck *JdCookie) InPoolWskey(wskey string) error { } tx.Model(ck).Updates(map[string]interface{}{ Available: True, - WsKey: wskey, + WsKey: ws_key, }) return tx.Commit().Error }