fix 去除jdpool中无用字段

This commit is contained in:
ZJY 2021-09-27 15:09:14 +08:00
parent 4449b0b044
commit d160f781e2

View File

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