fix blacklist display

This commit is contained in:
2024-04-27 12:00:40 +08:00
parent 935384c4e6
commit 76e4f473e9
3 changed files with 38 additions and 3 deletions

View File

@@ -140,6 +140,11 @@ export async function DelBiliBlackList(id: number): Promise<APIRoot<unknown>> {
id: id,
})
}
export async function DelBlackList(id: number): Promise<APIRoot<unknown>> {
return QueryGetAPI<AccountInfo>(`${ACCOUNT_API_URL}black-list/del`, {
id: id,
})
}
export function downloadConfigDirect(name: string) {
return QueryGetAPI<string>(VTSURU_API_URL + 'get-config', {
name: name,

View File

@@ -67,7 +67,7 @@ export interface AccountInfo extends UserInfo {
nextSendEmailTime?: number
isServerFetcherOnline: boolean
blackList: number[]
blackList: UserBasicInfo[]
biliBlackList: { [key: number]: string }
streamerInfo?: StreamerModel
biliUserAuthInfo?: BiliAuthModel