From 92f96c93f0ebf29a1305c72b1c5d0a4938bf261a Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Tue, 22 Apr 2025 19:06:23 +0800 Subject: [PATCH] fix: #700 Signed-off-by: bggRGjQaUbCoE --- lib/http/video.dart | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/http/video.dart b/lib/http/video.dart index f0f58c912..c159b5ec6 100644 --- a/lib/http/video.dart +++ b/lib/http/video.dart @@ -717,17 +717,22 @@ class VideoHttp { {required int mid, required int act, required int reSrc}) async { var res = await Request().post( Api.relationMod, + queryParameters: { + 'statistics': '{"appId":100,"platform":5}', + 'x-bili-device-req-json': + '{"platform":"web","device":"pc","spmid":"333.1387"}', + }, data: { 'fid': mid, 'act': act, 're_src': reSrc, 'gaia_source': 'web_main', - 'spmid': '333.999.0.0', - 'extend_content': { + 'spmid': '333.1387', + 'extend_content': jsonEncode({ "entity": "user", "entity_id": mid, 'fp': Request.headerUa(type: 'pc'), - }, + }), 'csrf': Accounts.main.csrf, }, options: Options(