完善虎牙已有绑定角色确认与重新扫码换绑流程
This commit is contained in:
@@ -283,6 +283,12 @@ export type HuyaBindResponse = {
|
||||
changeBindDay: number
|
||||
}
|
||||
|
||||
/** 已绑定账号和角色时无需再次调用换绑接口,当前角色可直接确认使用。 */
|
||||
export function hasExistingHuyaBinding(response: HuyaBindResponse | null): boolean {
|
||||
if (!response || response.status !== 200) return false
|
||||
return Boolean(response.accountData.isBindAccount && response.accountData.isBindRole)
|
||||
}
|
||||
|
||||
export type HuyaConfirmResponse = { status: number; msg: string }
|
||||
export type HuyaLiveLinkResponse = {
|
||||
status: number
|
||||
|
||||
Reference in New Issue
Block a user