修复(半自动履约): 客户绑定页不再展示虎牙UID

This commit is contained in:
yml
2026-11-20 17:11:39 +08:00
parent 132a281a3e
commit ac004fc442
4 changed files with 24 additions and 52 deletions
@@ -1050,19 +1050,6 @@ export default function CustomerFulfillmentPage({
const pendingRoleName =
bindingInfo?.pendingBindGameRole || selectedTask?.pendingBindGameRole || ''
const bindingRoleName = pendingRoleName || currentRoleName
const accountUid = String(selectedTask?.huyaUid || '').trim()
const platformRoleUid = String(
bindingInfo?.platformGameRoleUid || selectedTask?.platformGameRoleUid || '',
).trim()
const pendingPlatformRoleUid = String(
bindingInfo?.pendingPlatformGameRoleUid || selectedTask?.pendingPlatformGameRoleUid || '',
).trim()
const targetRoleUid = String(
bindingComparison?.customerRoleId || selectedTask?.customerGameRoleId || '',
).trim()
const platformRoleUidReference = platformRoleUid
? `平台角色 UID ${platformRoleUid}`
: '平台未返回绑定角色 UID,当前仅按角色名与区服核验'
const rebindUnchanged = bindingInfo?.rebindUnchanged === true
// 换绑被虎牙拒绝或未生效时展示失败原因;若客户已把资料改成与平台当前角色一致,
// 比对为 match,则回到正常提交流程,不再显示换绑失败。
@@ -1577,30 +1564,16 @@ export default function CustomerFulfillmentPage({
{bindingInfo?.bindGameAccount || selectedTask.bindGameAccount || '未获取'}
</strong>
</div>
<div>
<span>虎牙账号 UID</span>
<strong>{accountUid || '未获取'}</strong>
</div>
<div>
<span>当前绑定角色</span>
<strong>{currentRoleName || '未识别到角色'}</strong>
</div>
<div>
<span>目标角色 UID</span>
<strong>{targetRoleUid || '未填写'}</strong>
</div>
{pendingRoleName ? (
<div>
<span>本次待确认角色</span>
<strong>{pendingRoleName}</strong>
</div>
) : null}
{pendingPlatformRoleUid ? (
<div>
<span>待确认角色 UID</span>
<strong>{pendingPlatformRoleUid}</strong>
</div>
) : null}
</div>
) : null}
@@ -1811,14 +1784,9 @@ export default function CustomerFulfillmentPage({
平台角色:{bindingComparison.boundZone || '区服未知'} ·{' '}
{bindingComparison.boundRoleName || '角色未知'}
</span>
{platformRoleUid ? <span>平台角色 UID:{platformRoleUid}</span> : null}
{pendingPlatformRoleUid ? (
<span>待确认角色 UID:{pendingPlatformRoleUid}</span>
) : null}
<span>
已填资料:{bindingComparison.customerZone || '区服未填'} ·{' '}
{bindingComparison.customerRoleName || '角色未填'}(UID{' '}
{targetRoleUid || '未填'})
{bindingComparison.customerRoleName || '角色未填'}
</span>
<span>
角色名称与区服一致后才能确认绑定;请重新扫码换绑,或上一步修改资料。
@@ -1840,11 +1808,7 @@ export default function CustomerFulfillmentPage({
type="success"
showIcon
message={bindingRoleName ? `已识别角色:${bindingRoleName}` : '已识别绑定角色'}
description={[
bindingInfo?.bindGameAccount,
bindingInfo?.bindGameChannel,
targetRoleUid ? `目标角色 UID ${targetRoleUid}` : '',
]
description={[bindingInfo?.bindGameAccount, bindingInfo?.bindGameChannel]
.filter(Boolean)
.join(' · ')}
/>
@@ -2015,7 +1979,7 @@ export default function CustomerFulfillmentPage({
</Button>
</div>
<strong>{bindingComparison?.customerRoleName || '未填写'}</strong>
<em>{bindingComparison?.customerRoleId || '未填写游戏角色 UID'}</em>
<em>{bindingComparison?.customerZone || '区服未填写'}</em>
</div>
<div className="customer-binding-compare-side">
<div className="customer-binding-compare-head">
@@ -2030,7 +1994,7 @@ export default function CustomerFulfillmentPage({
</Button>
</div>
<strong>{bindingComparison?.boundRoleName || '未识别到角色'}</strong>
<em>{platformRoleUidReference}</em>
<em>{bindingComparison?.boundZone || '区服未识别'}</em>
</div>
</div>
</Space>
@@ -92,7 +92,12 @@ test('二维码区明确只核验角色名与区服,UID 不参与绑定', () =
assert.ok(source.includes('扫码后系统只核对角色名称与区服,UID 不参与绑定判定'))
assert.ok(source.includes('游戏角色 UID 为必填留档,不参与绑定判定'))
assert.ok(source.includes('本次待确认角色'))
assert.ok(source.includes('虎牙账号 UID'))
assert.ok(source.includes('登录账号'))
assert.ok(source.includes('当前绑定角色'))
assert.ok(!source.includes('虎牙账号 UID'))
assert.ok(!source.includes('目标角色 UID'))
assert.ok(!source.includes('待确认角色 UID'))
assert.ok(!source.includes('平台角色 UID:'))
assert.ok(!source.includes('平台已返回加密角色标识'))
assert.ok(!source.includes('平台加密标识已识别'))
assert.ok(!source.includes('const bindingPendingUid'))