fix(douyu): 按到期时间修正精英宝典状态
This commit is contained in:
@@ -169,7 +169,8 @@ class Account(Base):
|
||||
role_change_available_at: Mapped[datetime | None] = mapped_column(
|
||||
UTCDateTime, nullable=True
|
||||
)
|
||||
# 精英宝典开通状态(getUserInfo 的 manualType / expireTime)。
|
||||
# 精英宝典当前有效开通状态(getUserInfo 的 manualType + expireTime)。
|
||||
# manualType 只表示开过;写入时还要按 expireTime 判断是否已过期。
|
||||
# 光看积分区分不了「开通后积分花完」和「从未开通」,必须单独落库。
|
||||
elite_opened: Mapped[bool | None] = mapped_column(Boolean, nullable=True)
|
||||
elite_expire_time: Mapped[int | None] = mapped_column(Integer, nullable=True)
|
||||
|
||||
Reference in New Issue
Block a user