修复 affiliate-dash 绑定不一致时仍显示第 3 步 + 更新 UID 后旧绑定信息残留

- 前端:标题/副文案改为 bound && !bindMismatch 才显示第 3 步,不一致时保持第 2 步并引导重新绑定
- 后端:bindAffiliateDashClaimForTask 重新绑定时清空 bound/boundAccount/bindMismatch,避免旧账号残留导致误报不一致
This commit is contained in:
yml2213
2026-08-05 20:50:03 +08:00
parent 0933b4514f
commit 0deb498a05
2 changed files with 12 additions and 2 deletions
@@ -516,6 +516,10 @@ async function bindAffiliateDashClaimForTask(task: TaskRow, gameAccount: string)
qrUrl: bindResult.qrUrl, qrUrl: bindResult.qrUrl,
gameAccount, gameAccount,
expectedGameAccount: gameAccount, expectedGameAccount: gameAccount,
// 重新绑定:清空旧绑定状态,等待用户用新账号扫码完成新绑定
bound: false,
boundAccount: '',
bindMismatch: false,
} }
const updatedTask = await updateTask(task.id, { const updatedTask = await updateTask(task.id, {
@@ -35,9 +35,15 @@ export function AffiliateDashClaimPanel({
<Card className="claim-content-card"> <Card className="claim-content-card">
<div className="claim-feifei-main"> <div className="claim-feifei-main">
<Typography.Title level={2}> <Typography.Title level={2}>
{bound ? '第 3 步:确认并提交发货' : '第 2 步:绑定领取账号'} {bound && !bindMismatch ? '第 3 步:确认并提交发货' : '第 2 步:绑定领取账号'}
</Typography.Title> </Typography.Title>
<p>{bound ? '账号绑定成功,确认无误后提交发货' : '打开绑定链接完成绑定,系统将自动确认'}</p> <p>
{bound && !bindMismatch
? '账号绑定成功,确认无误后提交发货'
: bindMismatch
? '绑定账号与填写 UID 不一致,请核对 UID 后用正确账号重新绑定'
: '打开绑定链接完成绑定,系统将自动确认'}
</p>
</div> </div>
<UidEditRow <UidEditRow