优化(斗鱼领取): 租约过期绑定失败时允许客户刷新二维码重试
This commit is contained in:
@@ -453,6 +453,7 @@ export function compareCustomerRole(task: DouyuTaskRow, live: LiveBindingState)
|
||||
|
||||
const BINDING_FAILURE_ISSUES = new Set([
|
||||
'binding_failed',
|
||||
'lease_expired',
|
||||
'account_role_cooldown',
|
||||
'customer_role_cooldown',
|
||||
])
|
||||
|
||||
@@ -164,7 +164,9 @@ export default function DouyuFulfillmentPage() {
|
||||
)
|
||||
const needsProfile = Boolean(task && !hasCustomerProfile)
|
||||
const bindingFailed = Boolean(live && BINDING_FAILURE_ISSUES.has(live.issueCode))
|
||||
const bindingFailureRetryable = Boolean(live?.issueCode === 'binding_failed' && live.accountReady)
|
||||
const bindingFailureRetryable = Boolean(
|
||||
hasCustomerProfile && ['binding_failed', 'lease_expired'].includes(live?.issueCode || ''),
|
||||
)
|
||||
|
||||
useEffect(() => {
|
||||
const url = live?.qrUrl || ''
|
||||
@@ -490,7 +492,7 @@ export default function DouyuFulfillmentPage() {
|
||||
/>
|
||||
<p>
|
||||
{bindingFailureRetryable
|
||||
? '请刷新二维码后重新扫码,不会更换当前斗鱼账号。'
|
||||
? '刷新后会重新分配可用斗鱼账号并生成新二维码,请重新扫码。'
|
||||
: '请截图本页面并联系客服处理,客服会根据截图重新安排绑定。'}
|
||||
</p>
|
||||
{bindingFailureRetryable ? (
|
||||
|
||||
Reference in New Issue
Block a user