feat(douyu): 落地账号平台同步与登录配额

This commit is contained in:
yml
2026-11-21 21:27:14 +08:00
parent 72bc346c9b
commit 1d262cdfd9
30 changed files with 3087 additions and 85 deletions
@@ -72,6 +72,7 @@ const EXCHANGE_STATUS_LABELS: Record<string, string> = {
points_short: '积分不足',
not_opened: '精英宝典未开通',
limited: '已达限兑上限',
not_available: '商品当前不可兑换',
check_failed: '资格查询失败',
manual_done: '人工兑换完成',
};
@@ -146,6 +147,12 @@ const ISSUE_LABELS: Record<string, string> = {
points_short: '积分不足',
elite_not_opened: '精英宝典未开通',
commodity_limit_reached: '商品已达限兑上限',
commodity_not_open: '商品限时兑换未开始',
commodity_expired: '商品限时兑换已结束',
commodity_no_stock: '商品当前无库存',
commodity_not_offered: '商品当前未上架',
commodity_status_unknown: '商品资格状态未知',
commodity_not_exchangeable: '商品当前不可兑换',
eligibility_check_failed: '资格查询失败',
binding_failed: '绑定失败',
account_role_cooldown: '斗鱼账号仍在换绑冷却期',
@@ -188,6 +195,7 @@ function exchangeStatusHint(status: string) {
if (status === 'points_short') return '当前积分不足,账号不会被淘汰。完成充值后点击“刷新兑换资格”即可继续。';
if (status === 'not_opened') return '账号尚未开通精英宝典,不会被淘汰。开通后点击“刷新兑换资格”即可继续。';
if (status === 'limited') return '当前账号已达到该商品限兑上限,可等待限制解除、人工处理或释放后换号。';
if (status === 'not_available') return '商品当前受时间、库存或上架状态限制,暂不可兑换。请等待开放后重新查询资格。';
if (status === 'check_failed') return '实时查询失败,账号仍保留。请稍后重新刷新兑换资格。';
if (status === 'eligible') return '账号已满足当前商品兑换条件,可以继续人工兑换。';
return '';