Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-31 12:30:03 +08:00
parent de3edcfa13
commit 273e5649c3
6 changed files with 127 additions and 113 deletions

View File

@@ -26,7 +26,6 @@ class AnonymityInterceptor extends Interceptor {
Api.getSeasonDetailApi,
];
@override
void onRequest(RequestOptions options, RequestInterceptorHandler handler) {
if (MineController.anonymity) {
@@ -39,7 +38,7 @@ class AnonymityInterceptor extends Interceptor {
if (uri.lastIndexOf('/') >= index + i.length) continue;
//SmartDialog.showToast('触发无痕模式\n\n$i\n\n${options.uri}');
options.headers[HttpHeaders.cookieHeader] = "";
if(options.data != null && options.data.csrf != null) {
if (options.data != null && options.data.csrf != null) {
options.data.csrf = "";
}
break;