feat(VideoCard): improve not interested feature

This commit is contained in:
hakadao
2024-04-07 03:05:34 +08:00
parent a75657adc8
commit ba783ff076
13 changed files with 438 additions and 93 deletions

View File

@@ -75,7 +75,7 @@ export const TVAppKey = {
}
// https://github.com/magicdawn/bilibili-app-recommend/blob/e91722cc076fe65b98116fb0248236851ae6e1dc/src/utility/access-key/tv-qrcode/api.ts#L8
function tvSignSearchParams(params: Record<string, any>) {
export function tvSignSearchParams(params: Record<string, any>) {
const sign = appSign(params, TVAppKey.appkey, TVAppKey.appsec)
return new URLSearchParams({
...params,
@@ -83,6 +83,10 @@ function tvSignSearchParams(params: Record<string, any>) {
})
}
export function getTvSign(params: Record<string, any>) {
return appSign(params, TVAppKey.appkey, TVAppKey.appsec)
}
export function pollTVLoginQRCode(authCode: string): Promise<any> {
const url = 'https://passport.bilibili.com/x/passport-tv-login/qrcode/poll'