完善虎牙已有绑定角色确认与重新扫码换绑流程

This commit is contained in:
yml2213
2026-11-10 13:20:51 +08:00
parent a9937ef8c6
commit 08c3834a1c
11 changed files with 287 additions and 41 deletions
@@ -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