fix web rcmd

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-01-23 23:18:02 +08:00
parent 0ab07a713e
commit 30ee413852
2 changed files with 4 additions and 3 deletions

View File

@@ -4,7 +4,8 @@ abstract final class Api {
// 推荐视频
static const String recommendListApp =
'${HttpString.appBaseUrl}/x/v2/feed/index';
static const String recommendListWeb = '/x/web-interface/index/top/feed/rcmd';
static const String recommendListWeb =
'/x/web-interface/wbi/index/top/feed/rcmd';
// APP端不感兴趣、取消不感兴趣
static const String feedDislike = '${HttpString.appBaseUrl}/x/feed/dislike';

View File

@@ -48,7 +48,7 @@ abstract final class VideoHttp {
}) async {
final res = await Request().get(
Api.recommendListWeb,
queryParameters: {
queryParameters: await WbiSign.makSign({
'version': 1,
'feed_version': 'V8',
'homepage_ver': 1,
@@ -56,7 +56,7 @@ abstract final class VideoHttp {
'fresh_idx': freshIdx,
'brush': freshIdx,
'fresh_type': 4,
},
}),
);
if (res.data['code'] == 0) {
List<RecVideoItemModel> list = <RecVideoItemModel>[];