mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 16:00:24 +08:00 
			
		
		
		
	自动删除过期的IP
This commit is contained in:
		@@ -299,6 +299,7 @@ func (this *IPItemDAO) ListIPItemsAfterVersion(tx *dbs.Tx, version int64, size i
 | 
				
			|||||||
		_, err = this.Query(tx).
 | 
							_, err = this.Query(tx).
 | 
				
			||||||
			Pk(expiredId).
 | 
								Pk(expiredId).
 | 
				
			||||||
			Set("state", IPItemStateDisabled).
 | 
								Set("state", IPItemStateDisabled).
 | 
				
			||||||
 | 
								Set("expiredAt", 0).
 | 
				
			||||||
			Set("version", newVersion).
 | 
								Set("version", newVersion).
 | 
				
			||||||
			Update()
 | 
								Update()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user