自动删除过期的IP

This commit is contained in:
GoEdgeLab
2021-12-06 11:24:18 +08:00
parent ee446e02f2
commit 97b34024c1

View File

@@ -299,6 +299,7 @@ func (this *IPItemDAO) ListIPItemsAfterVersion(tx *dbs.Tx, version int64, size i
_, err = this.Query(tx).
Pk(expiredId).
Set("state", IPItemStateDisabled).
Set("expiredAt", 0).
Set("version", newVersion).
Update()