修复(半自动履约): 虎牙UID改为必填不校验
This commit is contained in:
@@ -1394,11 +1394,20 @@ test(
|
||||
orderId = result.orderId
|
||||
configId = result.configId
|
||||
|
||||
await expectErrorCode(
|
||||
() =>
|
||||
savePublicTaskProfile(orderNo, result.taskId, {
|
||||
roleName: 'Mock虎牙角色',
|
||||
serverZone: '安卓V区',
|
||||
}),
|
||||
'semi_auto_profile_required',
|
||||
)
|
||||
const saved = await savePublicTaskProfile(orderNo, result.taskId, {
|
||||
roleName: 'Mock虎牙角色',
|
||||
roleId: 'UID-not-number',
|
||||
serverZone: '安卓V区',
|
||||
})
|
||||
assert.equal(saved.task.customerGameRoleId, '')
|
||||
assert.equal(saved.task.customerGameRoleId, 'UID-not-number')
|
||||
assert.equal(saved.task.loginStatus, 'waiting_login')
|
||||
assert.equal(saved.task.displayStatus.label, '等待客户授权')
|
||||
|
||||
@@ -1427,7 +1436,7 @@ test(
|
||||
assert.equal(tasks[0]?.executionStatus, 'waiting_customer')
|
||||
assert.equal(tasks[0]?.displayStatus.label, '等待客户绑定角色')
|
||||
assert.equal(tasks[0]?.customerGameRoleName, 'Mock虎牙角色')
|
||||
assert.equal(tasks[0]?.customerGameRoleId, '')
|
||||
assert.equal(tasks[0]?.customerGameRoleId, 'UID-not-number')
|
||||
assert.equal(tasks[0]?.credentialSource, 'sms')
|
||||
assert.ok(tasks[0]?.huyaUid)
|
||||
assert.equal(tasks[0]?.platformNickname, 'Mock虎牙用户')
|
||||
|
||||
Reference in New Issue
Block a user