This commit is contained in:
cdle 2021-08-19 13:44:42 +08:00
parent fc2411cfd5
commit 06f0f3d19e

View File

@ -187,7 +187,7 @@ func (ck *JdCookie) InPool(pt_key string) error {
tx.Rollback()
return err
}
tx.Model(ck).Where(fmt.Sprintf("%s = '%s'", Available, False)).Updates(map[string]interface{}{
tx.Model(ck).Updates(map[string]interface{}{
Available: True,
PtKey: pt_key,
})