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 = static const String recommendListApp =
'${HttpString.appBaseUrl}/x/v2/feed/index'; '${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端不感兴趣、取消不感兴趣 // APP端不感兴趣、取消不感兴趣
static const String feedDislike = '${HttpString.appBaseUrl}/x/feed/dislike'; static const String feedDislike = '${HttpString.appBaseUrl}/x/feed/dislike';

View File

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