mirror of
https://github.com/vastsa/FileCodeBox.git
synced 2026-11-22 23:17:09 +08:00
fix: 永久取件失效问题
This commit is contained in:
1 parent
4e9d859ab0
commit
873eac1aa3
1 file changed
+2
@@ -29,6 +29,8 @@ class FileCodes(Model):
|
||||
|
||||
async def is_expired(self):
|
||||
# 按时间
|
||||
if self.expired_at is None:
|
||||
return False
|
||||
if self.expired_at and self.expired_count < 0:
|
||||
return self.expired_at < await get_now()
|
||||
# 按次数
|
||||
|
||||
Reference in new issue
Block a user