feat(douyu): 支持斗鱼预售归档账号安全释放回号库并修复完成归档自动解租 (v0.4.25)

This commit is contained in:
yml
2026-11-30 14:28:00 +08:00
parent efcbd9a691
commit cc78208048
11 changed files with 1927 additions and 9 deletions
@@ -156,6 +156,8 @@ from .douyu_collab_leases import (
_ensure_order_account_lease,
_release_order_account_lease,
_sync_order_lease,
execute_archived_account_release,
preview_archived_account_release,
retain_lease_for_active_collab,
)
from .douyu_collab_query import (
@@ -1647,6 +1649,7 @@ def set_status(
current,
order,
reuse_active_lease=True,
allow_close_platform_bound=(target == STATUS_DONE),
reason=(
"douyu_collab_done"
if target == STATUS_DONE
@@ -2349,6 +2352,7 @@ def archive_orders(
current,
order,
reason="douyu_collab_archived",
allow_close_platform_bound=True,
)
db.commit()
return {"archived": archived}