fix: 按单次取件过期问题
This commit is contained in:
1 parent
87fb5ae7da
commit
c6bdc53f5d
3 files changed
+5
-7
No files matched your search
+1
-1
@@ -33,7 +33,7 @@ class FileCodes(Model):
|
||||
return self.expired_at < await get_now()
|
||||
# 按次数
|
||||
else:
|
||||
return self.expired_count != -1 and self.expired_count == 0
|
||||
return self.expired_count <= 0
|
||||
|
||||
async def get_file_path(self):
|
||||
return f"{self.file_path}/{self.uuid_file_name}"
|
||||
|
||||
Reference in new issue
Block a user