mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
replace grpc to dio (#313)
* replace grpc to dio * load danmaku from grpc
This commit is contained in:
committed by
GitHub
parent
9e242fb902
commit
347a704b54
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user