From d160f781e2c5cfa7b92e2a54a767b252327c4373 Mon Sep 17 00:00:00 2001 From: ZJY <764763903@qq.com> Date: Mon, 27 Sep 2021 15:09:14 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=8E=BB=E9=99=A4jdpool=E4=B8=AD?= =?UTF-8?q?=E6=97=A0=E7=94=A8=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/db.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/models/db.go b/models/db.go index 18ee301..0b3aa1f 100644 --- a/models/db.go +++ b/models/db.go @@ -116,7 +116,6 @@ type JdCookiePool struct { ID int `gorm:"column:ID;primaryKey"` PtKey string `gorm:"column:PtKey;unique"` PtPin string `gorm:"column:PtPin"` - WsKey string `gorm:"column:WsKey"` LoseAt string `gorm:"column:LoseAt"` CreateAt string `gorm:"column:CreateAt"` } @@ -219,7 +218,6 @@ func (ck *JdCookie) InPool(pt_key string) error { if err := tx.Create(&JdCookiePool{ PtPin: ck.PtPin, PtKey: pt_key, - WsKey: ck.WsKey, CreateAt: date, }).Error; err != nil { tx.Rollback() @@ -277,7 +275,6 @@ func NewJdCookie(ck *JdCookie) error { if err := tx.Create(&JdCookiePool{ PtPin: ck.PtPin, PtKey: ck.PtKey, - WsKey: ck.WsKey, CreateAt: date, }).Error; err != nil { tx.Rollback() @@ -302,7 +299,6 @@ func UpdateCookie(ck *JdCookie) error { if err := tx.Create(&JdCookiePool{ PtPin: ck.PtPin, PtKey: ck.PtKey, - WsKey: ck.WsKey, CreateAt: date, }).Error; err != nil { tx.Rollback()