diff --git a/lib/http/api.dart b/lib/http/api.dart index ed6d1d14b..a8d17ab3f 100644 --- a/lib/http/api.dart +++ b/lib/http/api.dart @@ -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'; diff --git a/lib/http/video.dart b/lib/http/video.dart index cc5e04d9f..61257d631 100644 --- a/lib/http/video.dart +++ b/lib/http/video.dart @@ -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 list = [];