fix: 后台无法修改永久取件码的信息

This commit is contained in:
Lan
2025-12-01 19:09:23 +08:00
parent 95f5e0dfbc
commit c02fb7ce20
+1 -1
View File
@@ -167,7 +167,7 @@ async def update_file(
update_data["prefix"] = data.prefix update_data["prefix"] = data.prefix
if data.suffix is not None and data.suffix != file_code.suffix: if data.suffix is not None and data.suffix != file_code.suffix:
update_data["suffix"] = data.suffix update_data["suffix"] = data.suffix
if data.expired_at is not None and data.expired_at != file_code.expired_at: if data.expired_at is not None and data.expired_at != "" and data.expired_at != file_code.expired_at:
update_data["expired_at"] = data.expired_at update_data["expired_at"] = data.expired_at
if data.expired_count is not None and data.expired_count != file_code.expired_count: if data.expired_count is not None and data.expired_count != file_code.expired_count:
update_data["expired_count"] = data.expired_count update_data["expired_count"] = data.expired_count