replace grpc to dio (#313)

* replace grpc to dio

* load danmaku from grpc
This commit is contained in:
My-Responsitories
2025-02-24 06:55:28 +00:00
committed by GitHub
parent 9e242fb902
commit 347a704b54
14 changed files with 247 additions and 2327 deletions

View File

@@ -19,7 +19,6 @@ class ApiInterceptor extends Interceptor {
Api.bangumiInfo,
Api.liveRoomInfo,
Api.onlineTotal,
Api.webDanmaku,
Api.dynamicDetail,
Api.aiConclusion,
Api.getSeasonDetailApi,
@@ -44,6 +43,11 @@ class ApiInterceptor extends Interceptor {
}
}
// app端不需要cookie
if (options.uri.host == 'app.bilibili.com') {
options.headers['cookie'] = '';
}
if (options.extra['clearCookie'] == true) {
onRemoveCookie();
} else if (MineController.anonymity.value) {