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()