优化(斗鱼预售台账): 统一命名并同步客户主页图

同步履约客户游戏主页截图,兼容 order_site 绝对 URL 与 objectKey;统一预售台账用户可见文案和保护标签;移除 CK 检测与重登前端页面入口。
This commit is contained in:
yml
2026-11-26 19:11:30 +08:00
parent 7a20c63464
commit 82e1944a33
44 changed files with 204 additions and 428 deletions
+6 -6
View File
@@ -1,4 +1,4 @@
"""斗鱼外部单协作的账号占用、平台租约接管与释放。"""
"""斗鱼预售台账的账号占用、平台租约接管与释放。"""
from __future__ import annotations
@@ -120,7 +120,7 @@ def _takeover_platform_lease_for_collab(
order: DouyuExternalOrder,
lease: AccountLease,
) -> AccountLease:
"""外部协作显式接管平台租约,并在同一事务内把平台任务转人工。"""
"""预售单显式接管平台租约,并在同一事务内把平台任务转人工。"""
if not user_has_permission(current, "platform_fulfillment:use"):
raise CollabError(
"没有接管平台履约账号的权限",
@@ -136,7 +136,7 @@ def _takeover_platform_lease_for_collab(
)
if platform_task.execution_status in {"completed", "cancelled"}:
raise CollabError(
f"平台履约任务 #{platform_task.id} 已结束,不能由协作单接管",
f"平台履约任务 #{platform_task.id} 已结束,不能由预售单接管",
status_code=409,
code="platform_task_not_takeoverable",
)
@@ -186,7 +186,7 @@ def _takeover_platform_lease_for_collab(
db,
account_id=int(lease.account_id),
event_type=EVENT_LEASE_ACQUIRED,
title=f"外部协作接管平台履约账号:{order.order_no}",
title=f"预售单接管平台履约账号:{order.order_no}",
category=CATEGORY_OPS,
detail={
"lease_id": lease.id,
@@ -385,7 +385,7 @@ def _sync_order_lease(
else "平台履约任务"
)
raise CollabError(
f"该账号当前被{task_label}占用,请先由协作单确认接管",
f"该账号当前被{task_label}占用,请先由预售单确认接管",
status_code=409,
code="account_lease_conflict",
)
@@ -473,7 +473,7 @@ def retain_lease_for_active_collab(
db,
account_id=int(account_id),
event_type=EVENT_LEASE_ACQUIRED,
title=f"外部协作接管账号占用:{order.order_no}",
title=f"预售单接管账号占用:{order.order_no}",
category=CATEGORY_OPS,
detail={
"lease_id": active_lease.id,