diff --git a/docs/斗鱼/order_site客户主页截图对接.md b/docs/斗鱼/order_site客户主页截图对接.md
index 8dcbded..7d6a397 100644
--- a/docs/斗鱼/order_site客户主页截图对接.md
+++ b/docs/斗鱼/order_site客户主页截图对接.md
@@ -14,6 +14,7 @@ order_site 斗鱼领取页
customerProfileUpdatedAt
→ live-hub sync_order_snapshot 落平台履约任务
→ 直播账号履约工作台「用户资料(order_site)」展示并比对
+ → 同步到斗鱼预售台账时,客户主页截图随单投影
```
## order_site
@@ -48,3 +49,5 @@ order_site 斗鱼领取页
- order_site 当前必填 1 张;live-hub 接收接口兼容最多 5 张;
- 截图只用于核对绑定,不进入斗鱼账号 CK;
- 客户资料更新通过 outbox 快照同步,不靠客服手动转发图片。
+- 直播履约任务同步到斗鱼预售台账时,优先保存 order_site 的绝对截图 URL;
+ 旧数据没有 URL 时才回退 objectKey。
diff --git a/tests/test_account_protection_service.py b/tests/test_account_protection_service.py
index b2810cb..faf1972 100644
--- a/tests/test_account_protection_service.py
+++ b/tests/test_account_protection_service.py
@@ -119,6 +119,7 @@ def test_protection_membership_uses_active_fulfillment_relationships(db):
assert snapshot.group_account_ids["collab_bound"] == frozenset(
{shared.id, collab_only.id}
)
+ assert snapshot.groups["collab_bound"]["label"] == "预售台账绑定账号"
assert snapshot.monitored_ids == frozenset(
{shared.id, presale_only.id, collab_only.id}
)
diff --git a/tests/test_file_upload.py b/tests/test_file_upload.py
index d2675ab..3624b65 100644
--- a/tests/test_file_upload.py
+++ b/tests/test_file_upload.py
@@ -20,6 +20,7 @@ from tests.support.db import make_test_session
from web.backend.models import FileAsset
from web.backend.services.file_service import (
FileUploadError,
+ build_file_url,
build_object_key,
generate_image_variants,
get_stored_object,
@@ -105,6 +106,15 @@ class TestContentTypeAndScene:
assert re.fullmatch(r"collab/\d{4}/\d{2}/\d{2}/[0-9a-f]{24}\.png", key)
assert build_object_key("collab", "image/png", "a.png") != key
+ def test_file_url_keeps_external_customer_image_url(self):
+ url = "https://order-site.example/files/home.png"
+
+ assert build_file_url(url) == url
+ assert build_file_url(url, "thumb") == url
+ assert build_file_url("collab/2026/11/26/home.png") == (
+ "/api/files/object?key=collab%2F2026%2F11%2F26%2Fhome.png"
+ )
+
class TestImageVariants:
def test_png_source_keeps_alpha_and_outputs_webp(self):
diff --git a/tests/test_lease_ck_refresh.py b/tests/test_lease_ck_refresh.py
index 16fc986..62b1880 100644
--- a/tests/test_lease_ck_refresh.py
+++ b/tests/test_lease_ck_refresh.py
@@ -136,7 +136,7 @@ def test_run_lease_ck_refresh_calls_login_for_selected_accounts(db, monkeypatch)
def test_select_due_lease_accounts_also_covers_presale_and_collab_protection(db):
- """P1 到期前刷新不仅看生效租约,也覆盖预售与协作单绑定的履约保护账号。"""
+ """P1 到期前刷新不仅看生效租约,也覆盖预售与预售台账绑定的履约保护账号。"""
from web.backend.models import DouyuExternalOrder, PlatformFulfillmentTask
now = datetime.now(UTC).replace(microsecond=0)
diff --git a/tests/test_platform_fulfillment.py b/tests/test_platform_fulfillment.py
index 296ed61..d5a9e63 100644
--- a/tests/test_platform_fulfillment.py
+++ b/tests/test_platform_fulfillment.py
@@ -682,6 +682,7 @@ class TestFulfillmentCollabSync(_Base):
def test_manual_sync_creates_projected_collab_order(self):
task = self._task_with_account()
+ self.complete_customer_profile(task)
mapping = self.session.query(PlatformCommodityMapping).one()
mapping.goods_name = "套装-兔兔白日梦(斗鱼)"
self.session.add(
@@ -730,6 +731,7 @@ class TestFulfillmentCollabSync(_Base):
assert order.required_points == 1280
assert order.account_id == task.account_id
assert order.account_username == "collab-sync-account"
+ assert order.home_images == ["https://example.com/game-home.png"]
assert order.bind_game_role == "已确认角色"
assert order.bind_game_channel == "微信 / 苹果(iOS)"
assert order.status == collab.STATUS_INCOMPLETE
@@ -738,6 +740,8 @@ class TestFulfillmentCollabSync(_Base):
).model_dump()
assert payload["source_task_id"] == task.id
assert payload["source_platform_order_id"] == task.platform_order_id
+ assert payload["home_image_urls"] == ["https://example.com/game-home.png"]
+ assert payload["home_image_thumb_urls"] == ["https://example.com/game-home.png"]
assert (
self.session.query(AccountEvent)
.filter(AccountEvent.event_type == "collab_synced")
@@ -768,6 +772,25 @@ class TestFulfillmentCollabSync(_Base):
assert synced.account_id == account.id
assert synced.account_username == account.username
+ def test_manual_sync_backfills_customer_home_images(self):
+ task = self._task_with_account()
+ order, _ = collab.sync_platform_fulfillment_order(
+ self.session,
+ self.admin,
+ task,
+ )
+ assert not order.home_images
+
+ self.complete_customer_profile(task)
+ synced, action = collab.sync_platform_fulfillment_order(
+ self.session,
+ self.admin,
+ task,
+ )
+
+ assert action == "updated"
+ assert synced.home_images == ["https://example.com/game-home.png"]
+
def test_manual_sync_is_idempotent_and_preserves_human_fields(self):
task = self._task_with_account()
order, _ = collab.sync_platform_fulfillment_order(
@@ -3011,7 +3034,7 @@ class TestBindingAndCompletion(_Base):
assert task.execution_status == "manual_required"
assert task.issue_code == "customer_role_bound_elsewhere"
assert "role-lock-holder" in task.last_error
- assert "协作单" in task.last_error
+ assert "预售台账" in task.last_error
assert event.detail_json["roleLockAccountId"] == lock_account.id
assert event.detail_json["roleLockAccountName"] == "role-lock-holder"
assert event.detail_json["roleLockLeasePurpose"] == "douyu_collab"
@@ -4418,7 +4441,7 @@ class TestBindingAndCompletion(_Base):
)
assert exc_info.value.status_code == 409
- assert "外部协作单已在人工处理" in str(exc_info.value.detail)
+ assert "关联预售单已在人工处理" in str(exc_info.value.detail)
def test_restore_rejects_terminal_source_order(self, monkeypatch):
task = self.task()
@@ -4559,7 +4582,7 @@ class TestBindingAndCompletion(_Base):
self.session,
task_id=task.id,
current=self.admin,
- reason="以外部协作单的人工处理为准",
+ reason="以斗鱼预售台账的人工处理为准",
)
self.session.refresh(task)
diff --git a/web/backend/models.py b/web/backend/models.py
index aae551a..1afb0de 100644
--- a/web/backend/models.py
+++ b/web/backend/models.py
@@ -901,7 +901,7 @@ class DouyuEsportsGoodsSnapshot(Base):
class DouyuCollabShop(Base):
- """斗鱼外部单协作的店铺字典(新建单时点选,历史文本自动登记)。"""
+ """斗鱼预售台账的店铺字典(新建单时点选,历史文本自动登记)。"""
__tablename__ = "douyu_collab_shops"
@@ -929,7 +929,7 @@ class DouyuCollabShop(Base):
class DouyuCollabGift(Base):
- """斗鱼外部单协作的礼包字典(管理员维护名称与所需积分)。"""
+ """斗鱼预售台账的礼包字典(管理员维护名称与所需积分)。"""
__tablename__ = "douyu_collab_gifts"
@@ -958,11 +958,11 @@ class DouyuCollabGift(Base):
class DouyuExternalOrder(Base):
- """斗鱼外部单协作台账(一行 = 一单 = 一个内部斗鱼账号)。
+ """斗鱼预售台账(一行 = 一单 = 一个内部斗鱼账号)。
- 和虎牙外部 CK 台账的关键区别:**不复制 CK**。协作单只存 ``account_id``
+ 和虎牙外部 CK 台账的关键区别:**不复制 CK**。预售单只存 ``account_id``
(可空,账号删除后置空)与用户名/UID 快照,任何查询都实时读
- ``accounts.cookie``。账号 CK 更新后,协作单自动使用最新凭据。
+ ``accounts.cookie``。账号 CK 更新后,预售单自动使用最新凭据。
"""
__tablename__ = "douyu_external_orders"
@@ -981,7 +981,7 @@ class DouyuExternalOrder(Base):
owner_id: Mapped[int | None] = mapped_column(
ForeignKey("users.id"), nullable=True, index=True
)
- # ---- 来源关联(手工协作单为空)----
+ # ---- 来源关联(手工预售单为空)----
source_type: Mapped[str] = mapped_column(
String(24), nullable=False, default="manual", server_default="manual"
)
@@ -1030,6 +1030,7 @@ class DouyuExternalOrder(Base):
)
# ---- 订单资料 ----
+ # 手工上传存 live-hub object key;order_site 同步来的客户主页图存绝对 URL。
home_images: Mapped[list | None] = mapped_column(JSON, nullable=True)
gift_name: Mapped[str] = mapped_column(String(128), default="", server_default="")
commodity_id: Mapped[str] = mapped_column(String(64), default="", server_default="")
@@ -1094,7 +1095,7 @@ class DouyuExternalOrder(Base):
"source_task_id",
unique=True,
),
- # 账号池排除活动协作单的 NOT EXISTS 每轮都会执行。
+ # 账号池排除活动预售单的 NOT EXISTS 每轮都会执行。
Index(
"ix_douyu_external_orders_active_account",
"account_id",
@@ -1105,7 +1106,7 @@ class DouyuExternalOrder(Base):
class DouyuExternalOrderMetric(Base):
- """斗鱼协作单的鱼翅/积分/兑换记录快照(只追加,不存 CK)。"""
+ """斗鱼预售单的鱼翅/积分/兑换记录快照(只追加,不存 CK)。"""
__tablename__ = "douyu_external_order_metrics"
diff --git a/web/backend/permissions.py b/web/backend/permissions.py
index f87d03d..d68eb79 100644
--- a/web/backend/permissions.py
+++ b/web/backend/permissions.py
@@ -31,12 +31,12 @@ PERMISSIONS = {
# 斗鱼活动
"douyu:task": "斗鱼任务管理",
"douyu:config": "斗鱼配置管理",
- # 斗鱼外部单协作(订单挂内部账号,导出时实时读取账号 CK)
- "douyu:collab:view": "查看斗鱼外部单协作",
- "douyu:collab:edit": "编辑斗鱼外部单协作",
- "douyu:collab:manage": "删除斗鱼外部单协作",
+ # 斗鱼预售台账(订单挂内部账号,导出时实时读取账号 CK)
+ "douyu:collab:view": "查看斗鱼预售台账",
+ "douyu:collab:edit": "编辑斗鱼预售台账",
+ "douyu:collab:manage": "删除斗鱼预售台账",
# CK 是凭据:导到剪贴板 = 把凭据带出系统,单独一个点,默认只给运营
- "douyu:collab:ck_export": "导出斗鱼外部单协作账号的 CK(写剪贴板)",
+ "douyu:collab:ck_export": "导出斗鱼预售台账账号的 CK(写剪贴板)",
# 直播账号履约:order_site 订单由内部斗鱼账号完成游戏角色绑定和人工兑换
"platform_fulfillment:view": "查看直播账号履约任务",
"platform_fulfillment:use": "分配账号、绑定角色和处理直播账号履约",
diff --git a/web/backend/routers/douyu_collab.py b/web/backend/routers/douyu_collab.py
index a1e6b3b..136efad 100644
--- a/web/backend/routers/douyu_collab.py
+++ b/web/backend/routers/douyu_collab.py
@@ -1,4 +1,4 @@
-"""斗鱼外部单协作接口。
+"""斗鱼预售台账接口。
页面只做参数校验、权限和异常翻译;业务规则见
``web/backend/services/douyu_collab_service.py``。
@@ -59,7 +59,7 @@ from ..schemas import (
from ..services import douyu_collab_service as collab
from ..services.douyu_collab_events import collab_events
-router = APIRouter(prefix="/api/douyu", tags=["斗鱼外部单协作"])
+router = APIRouter(prefix="/api/douyu", tags=["斗鱼预售台账"])
def _verify_batch_interval() -> float:
@@ -457,7 +457,7 @@ def export_external_orders_ck(
):
"""勾选多行导出关联内部账号的 CK 明文(前端写剪贴板)。
- 斗鱼协作单不存 CK,导出的始终是关联账号的实时 ``cookie``。逐行写审计,
+ 斗鱼预售单不存 CK,导出的始终是关联账号的实时 ``cookie``。逐行写审计,
但审计里只记单号/账号/CK 状态,不把 CK 本体写进审计。
"""
try:
diff --git a/web/backend/schemas.py b/web/backend/schemas.py
index 0d0a25d..9fcf6df 100644
--- a/web/backend/schemas.py
+++ b/web/backend/schemas.py
@@ -2651,7 +2651,7 @@ class HuyaExternalOrderAuditOut(BaseModel):
created_at: datetime | None = None
-# ==================== 斗鱼外部单协作 ====================
+# ==================== 斗鱼预售台账 ====================
class DouyuCollabShopCreate(BaseModel):
@@ -2951,6 +2951,7 @@ class DouyuCollabOrderOut(BaseModel):
bind_game_channel: str = ""
bind_snapshot_at: datetime | None = None
+ # live-hub object key 或 order_site 客户主页图的绝对 URL。
home_images: list[str] = Field(default_factory=list)
home_image_urls: list[str] = Field(default_factory=list)
home_image_thumb_urls: list[str] = Field(default_factory=list)
diff --git a/web/backend/services/account_events_service.py b/web/backend/services/account_events_service.py
index 1141288..5226866 100644
--- a/web/backend/services/account_events_service.py
+++ b/web/backend/services/account_events_service.py
@@ -77,7 +77,7 @@ EVENT_TASK_STOPPED = "task_stopped" # 斗鱼账号任务停止/中断
EVENT_QUERY_COMPLETED = "query_completed" # 同步查询完成(含部分失败)
EVENT_LEASE_ACQUIRED = "lease_acquired" # 分配履约账号使用权
EVENT_LEASE_RELEASED = "lease_released" # 释放履约账号使用权
-EVENT_COLLAB_SYNCED = "collab_synced" # 直播履约任务同步到外部单协作
+EVENT_COLLAB_SYNCED = "collab_synced" # 直播履约任务同步到斗鱼预售台账
# 有符号金额的事件类型(用于页面「累计充值/累计消耗」):
# 充值为正、兑换为负,其余不计入金额统计。
diff --git a/web/backend/services/account_protection_service.py b/web/backend/services/account_protection_service.py
index 6aa29d2..18ac2c9 100644
--- a/web/backend/services/account_protection_service.py
+++ b/web/backend/services/account_protection_service.py
@@ -4,7 +4,7 @@
关系动态计算:
- ``presale_bound``:仍在履约中的预售任务所分配的账号;
-- ``collab_bound``:仍在进行中的斗鱼外部协作单所绑定的账号。
+- ``collab_bound``:仍在进行中的斗鱼预售台账订单所绑定的账号。
配置保存在 ``ck_health.config["protection_groups"]``。这样不需要扩容账号表,
也不会污染高价值/普通的库存供给口径。目标数量用于预警缺口;只要组已启用,
@@ -49,8 +49,8 @@ GROUP_DEFINITIONS: dict[str, dict[str, Any]] = {
"auto_relogin": True,
},
"collab_bound": {
- "label": "协作单绑定账号",
- "description": "未归档且仍在进行中的斗鱼外部协作单所绑定账号",
+ "label": "预售台账绑定账号",
+ "description": "未归档且仍在进行中的斗鱼预售台账订单绑定账号",
"enabled": True,
"target_count": 0,
"probe_interval_minutes": DEFAULT_PROBE_INTERVAL_MINUTES,
diff --git a/web/backend/services/automation/__init__.py b/web/backend/services/automation/__init__.py
index c995ebb..1a7afdf 100644
--- a/web/backend/services/automation/__init__.py
+++ b/web/backend/services/automation/__init__.py
@@ -234,7 +234,7 @@ def register_default_jobs() -> None:
JobSpec(
key=LEASE_CK_REFRESH_KEY,
title="履约 CK 到期前刷新",
- # 处理仍有效、但预测 24h 内到期的全部履约保护账号(预售 / 协作单 / 生效租约),
+ # 处理仍有效、但预测 24h 内到期的全部履约保护账号(预售 / 预售台账 / 生效租约),
# 提前续 CK,不参与普通失效重登的批次。
interval_seconds=600,
run_interval_seconds=600,
diff --git a/web/backend/services/automation/jobs/lease_ck_refresh.py b/web/backend/services/automation/jobs/lease_ck_refresh.py
index 06f805a..e846c3c 100644
--- a/web/backend/services/automation/jobs/lease_ck_refresh.py
+++ b/web/backend/services/automation/jobs/lease_ck_refresh.py
@@ -6,7 +6,7 @@
范围:
-- 预售履约任务分配的账号、进行中的斗鱼外部协作单绑定账号;
+- 预售履约任务分配的账号、进行中的斗鱼预售台账订单绑定账号;
- `account_leases.status=active` 且 purpose 为 `platform_fulfillment` / `douyu_collab`;
- `ck_check_status=valid`、有 Cookie、可自动管理、没有在途登录;
- 预测到期时间 <= now + 24h(`ck_expected_expires_at` 或 `cookie_updated_at + 7d`);
@@ -56,7 +56,7 @@ def due_lease_account_query(
db: Session,
now: datetime | None = None,
):
- """到期前 24h 的履约保护账号查询(预售 / 协作单 / 生效租约共用)。"""
+ """到期前 24h 的履约保护账号查询(预售 / 预售台账 / 生效租约共用)。"""
moment = now or datetime.now(UTC)
cutoff = moment + REFRESH_BEFORE
protection = load_protection_snapshot(db)
diff --git a/web/backend/services/automation/jobs/platform_fulfillment_lease_reaper.py b/web/backend/services/automation/jobs/platform_fulfillment_lease_reaper.py
index 1366039..529497b 100644
--- a/web/backend/services/automation/jobs/platform_fulfillment_lease_reaper.py
+++ b/web/backend/services/automation/jobs/platform_fulfillment_lease_reaper.py
@@ -125,7 +125,7 @@ def run_platform_fulfillment_lease_reaper(
# 分配并发/重试可能留下「batch_id 指向 task,但 task 实际用另一个账号/租约」
# 的孤儿 active 租约。它不会自然过期(expires_at 常为 NULL),会永久占住账号,
- # 并让协作单接管时报“任务与租约不一致”。这里按 task 的真实归属回收。
+ # 并让预售单接管时报“任务与租约不一致”。这里按 task 的真实归属回收。
# 注意:不能在过滤孤儿前先 limit active 租约。生产有 3,900+ 条 active
# pf 租约,先取前 500 条会被合法租约占满,后面的孤儿永远轮不到。
# 这里直接用 SQL 关联出「task 不存在 / task 账号或租约不一致」。
@@ -174,7 +174,7 @@ def run_platform_fulfillment_lease_reaper(
task.lease_id = None
task.execution_status = "manual_required"
task.issue_code = "lease_expired_collab_handoff"
- task.last_error = "平台租约已到期,账号已转外部协作人工处理"
+ task.last_error = "平台租约已到期,账号已转预售台账人工处理"
task.updated_at = moment
affected += 1
if released_ids:
diff --git a/web/backend/services/douyu_collab_catalog.py b/web/backend/services/douyu_collab_catalog.py
index 3dd090f..9441be8 100644
--- a/web/backend/services/douyu_collab_catalog.py
+++ b/web/backend/services/douyu_collab_catalog.py
@@ -1,4 +1,4 @@
-"""斗鱼外部单协作的礼包、商品解析与活动商品刷新。"""
+"""斗鱼预售台账的礼包、商品解析与活动商品刷新。"""
from __future__ import annotations
@@ -225,7 +225,7 @@ def delete_gift(
)
if used:
raise CollabError(
- f"还有 {used} 个协作单使用「{gift_name}」,请先停用或改名",
+ f"还有 {used} 个预售单使用「{gift_name}」,请先停用或改名",
code="gift_in_use",
)
record_audit(
diff --git a/web/backend/services/douyu_collab_common.py b/web/backend/services/douyu_collab_common.py
index b58503a..2bc444d 100644
--- a/web/backend/services/douyu_collab_common.py
+++ b/web/backend/services/douyu_collab_common.py
@@ -1,4 +1,4 @@
-"""斗鱼外部单协作的共享状态、校验与轻量查询。"""
+"""斗鱼预售台账的共享状态、校验与轻量查询。"""
from __future__ import annotations
diff --git a/web/backend/services/douyu_collab_events.py b/web/backend/services/douyu_collab_events.py
index 016d76f..098f4ee 100644
--- a/web/backend/services/douyu_collab_events.py
+++ b/web/backend/services/douyu_collab_events.py
@@ -1,4 +1,4 @@
-"""斗鱼外部单协作台账的进程内实时事件总线。
+"""斗鱼预售台账的进程内实时事件总线。
写接口提交成功后只发布「台账失效」事件,前端收到后按自己的筛选静默重拉,
不在事件里携带整行数据。当前生产单 worker,进程内队列足够;多实例时再换 Redis。
diff --git a/web/backend/services/douyu_collab_exports.py b/web/backend/services/douyu_collab_exports.py
index 0ff0e09..a1b8277 100644
--- a/web/backend/services/douyu_collab_exports.py
+++ b/web/backend/services/douyu_collab_exports.py
@@ -1,4 +1,4 @@
-"""斗鱼外部单协作的账号凭据与用户名导出。"""
+"""斗鱼预售台账的账号凭据与用户名导出。"""
from __future__ import annotations
@@ -28,9 +28,9 @@ def export_cks(
*,
commit: bool = True,
) -> dict[str, Any]:
- """导出协作单关联内部账号的 **CK 明文**(前端写剪贴板用)。
+ """导出预售单关联内部账号的 **CK 明文**(前端写剪贴板用)。
- 斗鱼协作单本身不存 CK,导出的始终是关联 ``accounts.cookie`` 的实时值。
+ 斗鱼预售单本身不存 CK,导出的始终是关联 ``accounts.cookie`` 的实时值。
和虎牙台账保持同一口径:
1. 需要独立权限点 ``douyu:collab:ck_export``;
@@ -59,7 +59,7 @@ def export_cks(
{
"id": order_id,
"order_no": "",
- "reason": "协作单不存在或已删除",
+ "reason": "预售单不存在或已删除",
}
)
continue
@@ -151,7 +151,7 @@ def export_usernames(
{
"id": order_id,
"order_no": "",
- "reason": "协作单不存在或已删除",
+ "reason": "预售单不存在或已删除",
}
)
continue
diff --git a/web/backend/services/douyu_collab_leases.py b/web/backend/services/douyu_collab_leases.py
index 7ff4b0e..97c0e6e 100644
--- a/web/backend/services/douyu_collab_leases.py
+++ b/web/backend/services/douyu_collab_leases.py
@@ -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,
diff --git a/web/backend/services/douyu_collab_query.py b/web/backend/services/douyu_collab_query.py
index 1b378c2..bcc84c6 100644
--- a/web/backend/services/douyu_collab_query.py
+++ b/web/backend/services/douyu_collab_query.py
@@ -1,4 +1,4 @@
-"""斗鱼外部单协作的查询、序列化、汇总与时间线。"""
+"""斗鱼预售台账的查询、序列化、汇总与时间线。"""
from __future__ import annotations
@@ -372,7 +372,7 @@ def get_order(db: Session, order_id: int) -> DouyuExternalOrder:
db.query(DouyuExternalOrder).filter(DouyuExternalOrder.id == order_id).first()
)
if order is None:
- raise CollabError("协作单不存在", status_code=404, code="order_not_found")
+ raise CollabError("预售单不存在", status_code=404, code="order_not_found")
return order
def serialize_one(db: Session, order: DouyuExternalOrder) -> dict[str, Any]:
diff --git a/web/backend/services/douyu_collab_service.py b/web/backend/services/douyu_collab_service.py
index 4cdcbe5..4bbda98 100644
--- a/web/backend/services/douyu_collab_service.py
+++ b/web/backend/services/douyu_collab_service.py
@@ -1,9 +1,9 @@
# ruff: noqa: F401
-"""斗鱼外部单协作台账服务。
+"""斗鱼预售台账服务。
核心边界(和虎牙外部 CK 台账的区别):
-1. **一行 = 一单 = 一个内部斗鱼账号**。协作单只存 ``account_id`` 和用户名快照,
+1. **一行 = 一单 = 一个内部斗鱼账号**。预售单只存 ``account_id`` 和用户名快照,
**不复制 CK**;所有查询实时读 ``accounts.cookie``,账号换 CK 后自动生效。
2. 鱼翅和手册积分是两笔资产:先充值鱼翅,再用鱼翅赠送精英令换积分。
余额查询单独返回两笔资产,兑换记录查询不混查余额。
@@ -385,7 +385,7 @@ def unlink_account(
expected_version: int | None = None,
commit: bool = True,
) -> DouyuExternalOrder:
- """解除协作单与账号的关联,但不删除内部账号。"""
+ """解除预售单与账号的关联,但不删除内部账号。"""
_assert_account_replace_permission(current)
_assert_success_account_change_allowed(current, order)
_assert_account_replaceable(order)
@@ -520,7 +520,7 @@ def recommend_accounts(
work_type=WORK_STOREHOME_SYNC,
priority=20,
due_at=now,
- reason=f"外部协作单推荐缺少商品能力: {cid}",
+ reason=f"预售台账推荐缺少商品能力: {cid}",
payload={"commodity_id": cid, "order_id": int(order.id)},
)
if refresh_seeds:
diff --git a/web/backend/services/douyu_collab_shops.py b/web/backend/services/douyu_collab_shops.py
index 45312a1..8f0758c 100644
--- a/web/backend/services/douyu_collab_shops.py
+++ b/web/backend/services/douyu_collab_shops.py
@@ -1,4 +1,4 @@
-"""斗鱼外部单协作的店铺字典与人工别名映射。"""
+"""斗鱼预售台账的店铺字典与人工别名映射。"""
from __future__ import annotations
@@ -229,7 +229,7 @@ def delete_shop(
)
if used:
raise CollabError(
- f"还有 {used} 个协作单使用「{shop_name}」,请先改名或停用",
+ f"还有 {used} 个预售单使用「{shop_name}」,请先改名或停用",
code="shop_in_use",
)
record_audit(
diff --git a/web/backend/services/douyu_collab_sync.py b/web/backend/services/douyu_collab_sync.py
index 79f0561..a2f78c6 100644
--- a/web/backend/services/douyu_collab_sync.py
+++ b/web/backend/services/douyu_collab_sync.py
@@ -1,4 +1,4 @@
-"""直播账号履约任务向斗鱼外部单协作的幂等投影。"""
+"""直播账号履约任务向斗鱼预售台账的幂等投影。"""
from __future__ import annotations
@@ -24,6 +24,7 @@ from .douyu_binding import (
resolve_fulfillment_binding,
)
from .douyu_collab_common import (
+ MAX_IMAGES,
POINTS_THRESHOLD_DEFAULT,
SOURCE_TYPE_PLATFORM_FULFILLMENT,
STATUS_DONE,
@@ -79,18 +80,50 @@ def _platform_fulfillment_gift(
def _platform_fulfillment_order_no(task: PlatformFulfillmentTask) -> str:
- """外部协作单直接使用 order_site 的真实平台订单号。"""
+ """预售单直接使用 order_site 的真实平台订单号。"""
order_no = _text(task.platform_order_id)
if not order_no:
raise CollabError("履约任务缺少平台订单号", code="platform_order_no_required")
if len(order_no) > 64:
raise CollabError(
- "平台订单号超过协作单号长度限制",
+ "平台订单号超过预售单号长度限制",
code="platform_order_no_too_long",
)
return order_no
+def _platform_fulfillment_home_images(
+ task: PlatformFulfillmentTask,
+) -> list[str]:
+ """把 order_site 的客户主页截图投影成预售台账可展示的图片引用。
+
+ order_site 快照同时带 ``url`` 和 ``objectKey``。两者可能属于 order_site
+ 自己的文件桶,因此优先保存绝对 URL,live-hub 回读时直接使用;只有没有
+ URL 的旧数据才退回 object key。
+ """
+ images: list[str] = []
+ for item in task.customer_home_images or []:
+ if isinstance(item, str):
+ reference = item
+ elif isinstance(item, dict):
+ reference = (
+ item.get("url")
+ or item.get("thumbnailUrl")
+ or item.get("thumbnail_url")
+ or item.get("objectKey")
+ or item.get("object_key")
+ or ""
+ )
+ else:
+ continue
+ image = _text(reference, max_length=512)
+ if image and image not in images:
+ images.append(image)
+ if len(images) >= MAX_IMAGES:
+ break
+ return images
+
+
def _apply_platform_fulfillment_binding(
db: Session,
order: DouyuExternalOrder,
@@ -98,7 +131,7 @@ def _apply_platform_fulfillment_binding(
*,
overwrite: bool,
) -> None:
- """把履约任务已确认的本地绑定结果投影到协作单,不额外联网。"""
+ """把履约任务已确认的本地绑定结果投影到预售单,不额外联网。"""
bind_task = (
db.query(DouyuTask).filter(DouyuTask.id == task.bind_task_id).first()
if task.bind_task_id
@@ -161,7 +194,7 @@ def sync_platform_fulfillment_order(
*,
commit: bool = True,
) -> tuple[DouyuExternalOrder, str]:
- """把一条直播履约任务幂等同步为斗鱼外部协作单。"""
+ """把一条直播履约任务幂等同步为斗鱼预售台账订单。"""
if task.source_system != "order_site":
raise CollabError("仅支持同步 order_site 履约任务", code="source_unsupported")
@@ -198,6 +231,7 @@ def sync_platform_fulfillment_order(
else None
)
gift_name, commodity_id, required_points = _platform_fulfillment_gift(db, task)
+ home_images = _platform_fulfillment_home_images(task)
if order is None:
order = DouyuExternalOrder(
@@ -229,6 +263,8 @@ def sync_platform_fulfillment_order(
order.gift_name = gift_name
order.commodity_id = commodity_id
order.required_points = required_points
+ if home_images:
+ order.home_images = home_images
if account is not None and (
created or (order.account_id is None and not order.account_username)
):
@@ -270,7 +306,7 @@ def sync_platform_fulfillment_order(
account=linked_account,
action="douyu:collab:sync_from_platform_fulfillment",
event_type=EVENT_COLLAB_SYNCED,
- title=f"同步外部单协作:{order.order_no}",
+ title=f"同步斗鱼预售台账:{order.order_no}",
target=f"douyu_external_order:{order.id}",
detail=audit_detail,
)
@@ -358,7 +394,7 @@ def sync_platform_fulfillment_orders(
}
)
except Exception: # noqa: BLE001 - 批量边界需隔离单条未知故障
- logger.exception("同步直播履约任务 {} 到斗鱼外部协作失败", task_id)
+ logger.exception("同步直播履约任务 {} 到斗鱼预售台账失败", task_id)
result["failed"] += 1
result["items"].append(
{
diff --git a/web/backend/services/file_service.py b/web/backend/services/file_service.py
index 4128407..6597341 100644
--- a/web/backend/services/file_service.py
+++ b/web/backend/services/file_service.py
@@ -20,7 +20,7 @@ import secrets
from dataclasses import dataclass
from datetime import UTC, datetime
from typing import Any
-from urllib.parse import quote
+from urllib.parse import quote, urlsplit
from loguru import logger
from PIL import Image, ImageOps, features
@@ -152,8 +152,19 @@ def image_variant_fallback_keys(object_key: str, variant: str) -> list[str]:
def build_file_url(object_key: str, variant: str = "") -> str:
- """文件访问地址(走后端代理,不暴露对象存储直链)。"""
- url = f"/api/files/object?key={quote(normalize_object_key(object_key), safe='')}"
+ """文件访问地址。
+
+ 本系统上传的图片仍走 ``/api/files/object`` 代理;order_site 已在客户资料
+ 快照里提供绝对 URL 的图片则原样返回,避免把外部地址误当成 live-hub 的
+ object key 再包一层查询参数。
+ """
+ raw = str(object_key or "").strip()
+ parsed = urlsplit(raw)
+ if parsed.scheme.lower() in {"http", "https"} and parsed.netloc:
+ return raw
+ if raw.startswith("/") and not raw.startswith("//"):
+ return raw
+ url = f"/api/files/object?key={quote(normalize_object_key(raw), safe='')}"
if variant:
url = f"{url}&variant={quote(variant, safe='')}"
return url
diff --git a/web/backend/services/login_quota_service.py b/web/backend/services/login_quota_service.py
index e220e6b..5344744 100644
--- a/web/backend/services/login_quota_service.py
+++ b/web/backend/services/login_quota_service.py
@@ -31,7 +31,7 @@ CATEGORY_MANUAL = "manual_login"
CATEGORY_ONBOARDING = "onboarding"
CATEGORY_RELOGIN_HIGH = "relogin_high_value"
CATEGORY_RELOGIN_ORDINARY = "relogin_ordinary"
-#: 履约保护目标(预售/协作单/生效租约绑定账号)的失效重登:独立分类与配额保护,
+#: 履约保护目标(预售/预售台账/生效租约绑定账号)的失效重登:独立分类与配额保护,
#: 不被全库普通重登吃干当天登录次数。
CATEGORY_RELOGIN_PROTECTED = "relogin_protected"
CATEGORY_ACCOUNT_CHECK = "account_check"
diff --git a/web/backend/services/platform_fulfillment/allocation.py b/web/backend/services/platform_fulfillment/allocation.py
index 25d9198..7fce829 100644
--- a/web/backend/services/platform_fulfillment/allocation.py
+++ b/web/backend/services/platform_fulfillment/allocation.py
@@ -494,7 +494,7 @@ def _allocate_task_from_capability(
elif retry_reason == "account_pool_busy":
task.issue_code = "account_pool_busy"
task.last_error = (
- "已有具备兑换资格的账号,但当前被租约或外部协作单占用;"
+ "已有具备兑换资格的账号,但当前被租约或预售台账占用;"
"后台正在继续补充可用账号"
)
else:
diff --git a/web/backend/services/platform_fulfillment/lifecycle.py b/web/backend/services/platform_fulfillment/lifecycle.py
index fcd22f0..79c6277 100644
--- a/web/backend/services/platform_fulfillment/lifecycle.py
+++ b/web/backend/services/platform_fulfillment/lifecycle.py
@@ -693,7 +693,7 @@ def restore_cancelled_task(
):
raise HTTPException(
status_code=409,
- detail="关联外部协作单已在人工处理,请继续使用外部协作单",
+ detail="关联预售单已在人工处理,请继续使用斗鱼预售台账",
)
mapping = _mapping_for_sku(db, task.internal_sku_key)
@@ -745,12 +745,12 @@ def prepare_platform_task_for_collab_takeover(
current: User,
collab_order_no: str,
) -> None:
- """把平台履约任务转为人工,但不提交事务;由协作单接管流程原子提交。"""
+ """把平台履约任务转为人工,但不提交事务;由预售单接管流程原子提交。"""
if task.execution_status in {"completed", "cancelled"}:
- raise HTTPException(status_code=409, detail="已结束的履约任务不能被协作单接管")
+ raise HTTPException(status_code=409, detail="已结束的履约任务不能被预售单接管")
account_id = task.account_id
lease_id = task.lease_id
- reason = f"外部协作单 {collab_order_no} 人工接管账号"
+ reason = f"预售单 {collab_order_no} 人工接管账号"
task.account_id = None
task.lease_id = None
task.bind_task_id = None
@@ -791,7 +791,7 @@ def release_task_to_manual(
task = _load_task(db, task_id)
if task.execution_status in {"completed", "cancelled"}:
raise HTTPException(status_code=409, detail="已结束任务不能转人工")
- manual_reason = reason.strip()[:2000] or "以外部单协作人工处理为准"
+ manual_reason = reason.strip()[:2000] or "以斗鱼预售台账人工处理为准"
account_id = task.account_id
lease_id = task.lease_id
lease = (
diff --git a/web/backend/services/platform_fulfillment/repository.py b/web/backend/services/platform_fulfillment/repository.py
index 330ef55..a01ded4 100644
--- a/web/backend/services/platform_fulfillment/repository.py
+++ b/web/backend/services/platform_fulfillment/repository.py
@@ -58,7 +58,7 @@ def _retain_lease_for_active_collab(
current: User,
reason: str,
) -> AccountLease | None:
- """平台释放账号前,把仍在活动的协作单占用接续到同一租约。"""
+ """平台释放账号前,把仍在活动的预售单占用接续到同一租约。"""
if lease is None or not task.account_id:
return None
from ..douyu_collab_service import retain_lease_for_active_collab
diff --git a/web/backend/services/platform_fulfillment/role_lock.py b/web/backend/services/platform_fulfillment/role_lock.py
index 21a3730..bfcc543 100644
--- a/web/backend/services/platform_fulfillment/role_lock.py
+++ b/web/backend/services/platform_fulfillment/role_lock.py
@@ -36,7 +36,7 @@ ROLE_LOCK_WINDOW = timedelta(days=7)
_BEIJING = ZoneInfo("Asia/Shanghai")
_LEASE_PURPOSE_LABELS = {
- "douyu_collab": "协作单",
+ "douyu_collab": "预售台账",
"platform_fulfillment": "履约单",
"exchange": "兑换单",
}
diff --git a/web/backend/services/platform_fulfillment/runtime.py b/web/backend/services/platform_fulfillment/runtime.py
index eb3ca90..40b1a53 100644
--- a/web/backend/services/platform_fulfillment/runtime.py
+++ b/web/backend/services/platform_fulfillment/runtime.py
@@ -142,7 +142,7 @@ def _apply_task_lease_policy(
return active_lease
if str(task.execution_status or "") in {"completed", "cancelled"}:
- # 终态释放前先检查活动外部协作单。若账号仍被协作单使用,租约转换为
+ # 终态释放前先检查活动预售单。若账号仍被预售单使用,租约转换为
# douyu_collab 并保持无限,不能被平台 TTL 抢走。
from ..douyu_collab_service import retain_lease_for_active_collab
diff --git a/web/frontend/src/App.tsx b/web/frontend/src/App.tsx
index 8bde29b..6cc1ab8 100644
--- a/web/frontend/src/App.tsx
+++ b/web/frontend/src/App.tsx
@@ -20,7 +20,6 @@ const PlatformFulfillmentPage = lazy(() => import('./pages/PlatformFulfillmentPa
const AutomationPage = lazy(() => import('./pages/AutomationPage'));
const UsersPage = lazy(() => import('./pages/UsersPage'));
const CookiePage = lazy(() => import('./pages/CookiePage'));
-const CookieOperationsPage = lazy(() => import('./pages/CookieOperationsPage'));
const DouyuTasksPage = lazy(() => import('./pages/DouyuTasksPage'));
const DouyuCollabPage = lazy(() => import('./pages/DouyuCollabPage'));
const HuyaAccountsPage = lazy(() => import('./pages/HuyaAccountsPage'));
@@ -94,7 +93,6 @@ function AppContent() {
)} />
)} />
)} />
- )} />
} />
)} />
)} />
diff --git a/web/frontend/src/components/DouyuCollabGiftModal.tsx b/web/frontend/src/components/DouyuCollabGiftModal.tsx
index 1d903d3..03e6428 100644
--- a/web/frontend/src/components/DouyuCollabGiftModal.tsx
+++ b/web/frontend/src/components/DouyuCollabGiftModal.tsx
@@ -234,7 +234,7 @@ export default function DouyuCollabGiftModal({
canManage ? (
void remove(row)}
disabled={busy}
>
@@ -258,7 +258,7 @@ export default function DouyuCollabGiftModal({
>
- 先在这里维护标准礼包名和所需积分,新建协作单时直接选择。礼包名请按兑换记录里的名称填写;
+ 先在这里维护标准礼包名和所需积分,新建预售单时直接选择。礼包名请按兑换记录里的名称填写;
停用只是不再出现在新建选择里,历史订单不受影响;改名会同步已有订单,改积分只影响之后新建的单。
{canManage && (
@@ -336,7 +336,7 @@ export default function DouyuCollabGiftModal({
onChange={(event) => setEditRemark(event.target.value)}
/>
- 改名会同步已有协作单上的礼包名;修改积分只影响之后新建的协作单,不会改变历史订单。
+ 改名会同步已有预售单上的礼包名;修改积分只影响之后新建的预售单,不会改变历史订单。
diff --git a/web/frontend/src/components/DouyuCollabShopModal.tsx b/web/frontend/src/components/DouyuCollabShopModal.tsx
index 7af2f71..e881512 100644
--- a/web/frontend/src/components/DouyuCollabShopModal.tsx
+++ b/web/frontend/src/components/DouyuCollabShopModal.tsx
@@ -23,7 +23,7 @@ import { getErrorMessage } from '../utils/error';
const { Text } = Typography;
/**
- * 斗鱼店铺管理:先维护好店铺,新建协作单时直接点选。
+ * 斗鱼店铺管理:先维护好店铺,新建预售单时直接点选。
*
* - 停用后不再出现在新建下拉里,历史订单不受影响;
* - 重命名会自动同步已有订单上的店铺名,避免筛选出现新旧两个名字;
@@ -233,7 +233,7 @@ export default function DouyuCollabShopModal({
canManage ? (
void remove(row)}
disabled={busy}
>
@@ -257,7 +257,7 @@ export default function DouyuCollabShopModal({
>
- 先在这里定义店铺,新建协作单时可以直接点选。停用只是不再出现在新建选择里,历史订单不受影响;
+ 先在这里定义店铺,新建预售单时可以直接点选。停用不再出现在新建选择里,历史订单不受影响;
完整名称/别名只按这里手工维护的映射归并平台同步店铺;筛选仍使用规范简称。
重命名会自动同步已有订单,已有订单仍在使用的店铺不能删除。
@@ -306,7 +306,7 @@ export default function DouyuCollabShopModal({
onChange={(event) => setRenameValue(event.target.value)}
onPressEnter={() => void submitRename()}
/>
- 保存后会同时更新已有协作单上的店铺名。
+ 保存后会同时更新已有预售单上的店铺名。
>
diff --git a/web/frontend/src/components/HuyaCollabHomeImageUploader.tsx b/web/frontend/src/components/HuyaCollabHomeImageUploader.tsx
index 23c7852..f7eaf7d 100644
--- a/web/frontend/src/components/HuyaCollabHomeImageUploader.tsx
+++ b/web/frontend/src/components/HuyaCollabHomeImageUploader.tsx
@@ -1,9 +1,10 @@
/**
- * 新建协作单时的「主页截图」上传(先传 OSS 拿 object_key,随表单一起提交)。
+ * 新建预售单时的「主页截图」上传(先传 OSS 拿 object_key,随表单一起提交)。
*
* - 第一张就是封面(列表和详情都按第一张当封面);
* - 新建时还没落库,所以预览用的地址来自上传接口返回的 thumbnail_url / url;
- * - 放进 `Form.Item name="home_images"`,值就是 object_key 数组;
+ * - 放进 `Form.Item name="home_images"`,值通常是 object_key 数组;
+ * - 从 order_site 同步来的图片已是绝对 URL,编辑时直接按原地址预览。
* - 支持点击选择、拖拽,以及剪贴板里的截图直接 Ctrl/Cmd+V 粘贴。
*/
import { useCallback, useEffect, useRef, useState } from 'react';
@@ -22,6 +23,12 @@ const ACCEPT_ATTR = ACCEPTED_IMAGE_TYPES.join(',');
type Preview = Pick;
+function imagePreviewUrl(value: string, variant = ''): string {
+ if (value.startsWith('/') || /^https?:\/\//i.test(value)) return value;
+ const suffix = variant ? `&variant=${encodeURIComponent(variant)}` : '';
+ return `/api/files/object?key=${encodeURIComponent(value)}${suffix}`;
+}
+
/** 从剪贴板里取图片文件;items 拿不到时退回 files。 */
function clipboardImageFiles(data: DataTransfer | null): File[] {
if (!data) return [];
@@ -146,7 +153,7 @@ export default function HuyaCollabHomeImageUploader({
) : (
previews[key]?.url || `/api/files/object?key=${encodeURIComponent(key)}`)}
+ items={keys.map((key) => previews[key]?.url || imagePreviewUrl(key))}
>
{keys.map((key, index) => (
@@ -156,7 +163,7 @@ export default function HuyaCollabHomeImageUploader({
src={
previews[key]?.thumbnail_url
|| previews[key]?.url
- || `/api/files/object?key=${encodeURIComponent(key)}&variant=thumb`
+ || imagePreviewUrl(key, 'thumb')
}
width={88}
height={88}
diff --git a/web/frontend/src/index.css b/web/frontend/src/index.css
index 11d89d0..854622b 100644
--- a/web/frontend/src/index.css
+++ b/web/frontend/src/index.css
@@ -21,7 +21,7 @@ html[data-theme='dark'] body {
background: transparent;
}
-/* 新建协作单弹窗:表单项间距压紧一点,配合紧凑布局尽量不出现滚动条 */
+/* 新建预售单弹窗:表单项间距压紧一点,配合紧凑布局尽量不出现滚动条 */
.huya-collab-create .ant-form-item {
margin-bottom: 14px;
}
diff --git a/web/frontend/src/layouts/MainLayout.tsx b/web/frontend/src/layouts/MainLayout.tsx
index 4249fb3..5637c13 100644
--- a/web/frontend/src/layouts/MainLayout.tsx
+++ b/web/frontend/src/layouts/MainLayout.tsx
@@ -74,9 +74,6 @@ export default function MainLayout({ onLogout }: { onLogout?: () => void }) {
if (can('cookie:view')) {
douyuItems.push({ key: '/cookies', label: 'Cookie 管理', icon: });
}
- if (can('cookie:operate')) {
- douyuItems.push({ key: '/cookie-operations', label: 'CK 检测与重登', icon: });
- }
if (can('automation:view')) {
douyuItems.push({ key: '/automation', label: '斗鱼自动化', icon: });
}
diff --git a/web/frontend/src/pages/AccountDetailPage.tsx b/web/frontend/src/pages/AccountDetailPage.tsx
index 68dd69e..0a3caf9 100644
--- a/web/frontend/src/pages/AccountDetailPage.tsx
+++ b/web/frontend/src/pages/AccountDetailPage.tsx
@@ -44,7 +44,7 @@ const EVENT_STYLE: Record = {
task_stopped: { label: '任务停止', color: 'orange' },
query_completed: { label: '查询完成', color: 'blue' },
lease_acquired: { label: '账号占用', color: 'cyan' },
- collab_synced: { label: '外部协作同步', color: 'geekblue' },
+ collab_synced: { label: '预售台账同步', color: 'geekblue' },
lease_released: { label: '账号释放', color: 'default' },
};
diff --git a/web/frontend/src/pages/AutomationPage.tsx b/web/frontend/src/pages/AutomationPage.tsx
index 55d7c6c..a0731a9 100644
--- a/web/frontend/src/pages/AutomationPage.tsx
+++ b/web/frontend/src/pages/AutomationPage.tsx
@@ -156,7 +156,7 @@ const JOB_UI: Record = {
showConcurrency: false,
},
lease_ck_refresh: {
- description: "对仍有效、但预测 24 小时内到期的履约保护账号提前登录续 CK;覆盖预售、协作单和生效租约。",
+ description: "对仍有效、但预测 24 小时内到期的履约保护账号提前登录续 CK;覆盖预售台账和生效租约。",
core: true,
showRecheck: false,
showConcurrency: true,
@@ -714,7 +714,7 @@ export default function AutomationPage() {
showIcon
style={{ marginBottom: 12 }}
message="严格按 P0 > P1 > P2 > P3 > P4 顺序预留与调度"
- description="当剩余小时/日配额紧张时,低优先级类别会自动为高优先级类别让路;其中 P0/P1 涵盖预售、协作单和生效租约全部履约保护目标。"
+ description="当剩余小时/日配额紧张时,低优先级类别会自动为高优先级类别让路;其中 P0/P1 涵盖预售台账和生效租约全部履约保护目标。"
/>
([]);
- const [loading, setLoading] = useState(false);
- const [search, setSearch] = useState('');
- const [tagFilter, setTagFilter] = useState('');
- const [tags, setTags] = useState([]);
- const [selectedRowKeys, setSelectedRowKeys] = useState([]);
- const [checkingIds, setCheckingIds] = useState>(new Set());
- const [reloginIds, setReloginIds] = useState>(new Set());
- const [checkResults, setCheckResults] = useState