mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 08:08:19 +08:00
@@ -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';
|
||||||
|
|||||||
@@ -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>[];
|
||||||
|
|||||||
Reference in New Issue
Block a user