优化(斗鱼预售台账): 统一命名并同步客户主页图
同步履约客户游戏主页截图,兼容 order_site 绝对 URL 与 objectKey;统一预售台账用户可见文案和保护标签;移除 CK 检测与重登前端页面入口。
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user