This commit is contained in:
cdle 2021-08-20 10:29:32 +08:00
parent 81ecbb9e97
commit 33237e2c14

View File

@ -167,7 +167,7 @@ func (ck *JdCookie) Update(column string, value interface{}) {
db.Model(ck).Update(column, value)
}
if ck.PtPin != "" {
db.Model(ck).Where(PtPin+" = ?", ck.PtPin).Update(column, value)
db.Model(JdCookie{}).Where(PtPin+" = ?", ck.PtPin).Update(column, value)
}
}