mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-21 17:46:24 +08:00
fix get live second list
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -2,6 +2,7 @@ import 'package:PiliPlus/common/constants.dart';
|
||||
import 'package:PiliPlus/http/api.dart';
|
||||
import 'package:PiliPlus/http/init.dart';
|
||||
import 'package:PiliPlus/http/loading_state.dart';
|
||||
import 'package:PiliPlus/http/login.dart';
|
||||
import 'package:PiliPlus/http/ua_type.dart';
|
||||
import 'package:PiliPlus/models/common/live_search_type.dart';
|
||||
import 'package:PiliPlus/models_new/live/live_area_list/area_item.dart';
|
||||
@@ -169,23 +170,25 @@ class LiveHttp {
|
||||
final params = {
|
||||
if (isLogin) 'access_key': Accounts.main.accessKey,
|
||||
'appkey': Constants.appKey,
|
||||
'channel': 'master',
|
||||
'actionKey': 'appkey',
|
||||
'build': '8430300',
|
||||
'build': 8430300,
|
||||
'version': '8.43.0',
|
||||
'c_locale': 'zh_CN',
|
||||
'device': 'pad',
|
||||
'device': 'android',
|
||||
'device_name': 'android',
|
||||
'device_type': '0',
|
||||
'fnval': '912',
|
||||
'disable_rcmd': '0',
|
||||
'https_url_req': '1',
|
||||
if (moduleSelect == true) 'module_select': '1',
|
||||
'mobi_app': 'android_hd',
|
||||
'device_type': 0,
|
||||
'fnval': 912,
|
||||
'disable_rcmd': 0,
|
||||
'https_url_req': 1,
|
||||
if (moduleSelect == true) 'module_select': 1,
|
||||
'mobi_app': 'android',
|
||||
'network': 'wifi',
|
||||
'page': pn,
|
||||
'platform': 'android',
|
||||
if (isLogin) 'relation_page': '1',
|
||||
if (isLogin) 'relation_page': 1,
|
||||
's_locale': 'zh_CN',
|
||||
'scale': '2',
|
||||
'scale': 2,
|
||||
'statistics': Constants.statisticsApp,
|
||||
'ts': DateTime.now().millisecondsSinceEpoch ~/ 1000,
|
||||
};
|
||||
@@ -197,6 +200,23 @@ class LiveHttp {
|
||||
var res = await Request().get(
|
||||
Api.liveFeedIndex,
|
||||
queryParameters: params,
|
||||
options: Options(
|
||||
headers: {
|
||||
'buvid': LoginHttp.buvid,
|
||||
'fp_local':
|
||||
'1111111111111111111111111111111111111111111111111111111111111111',
|
||||
'fp_remote':
|
||||
'1111111111111111111111111111111111111111111111111111111111111111',
|
||||
'session_id': '11111111',
|
||||
'env': 'prod',
|
||||
'app-key': 'android',
|
||||
'User-Agent': Constants.userAgentApp,
|
||||
'x-bili-trace-id': Constants.traceId,
|
||||
'x-bili-aurora-eid': '',
|
||||
'x-bili-aurora-zone': '',
|
||||
'bili-http-engine': 'cronet',
|
||||
},
|
||||
),
|
||||
);
|
||||
if (res.data['code'] == 0) {
|
||||
return Success(LiveIndexData.fromJson(res.data['data']));
|
||||
@@ -233,29 +253,31 @@ class LiveHttp {
|
||||
if (isLogin) 'access_key': Accounts.main.accessKey,
|
||||
'appkey': Constants.appKey,
|
||||
'actionKey': 'appkey',
|
||||
'channel': 'master',
|
||||
'area_id': ?areaId,
|
||||
'parent_area_id': ?parentAreaId,
|
||||
'build': '8430300',
|
||||
'build': 8430300,
|
||||
'version': '8.43.0',
|
||||
'c_locale': 'zh_CN',
|
||||
'device': 'pad',
|
||||
'device': 'android',
|
||||
'device_name': 'android',
|
||||
'device_type': '0',
|
||||
'fnval': '912',
|
||||
'disable_rcmd': '0',
|
||||
'https_url_req': '1',
|
||||
'mobi_app': 'android_hd',
|
||||
'module_select': '0',
|
||||
'device_type': 0,
|
||||
'fnval': 912,
|
||||
'disable_rcmd': 0,
|
||||
'https_url_req': 1,
|
||||
'mobi_app': 'android',
|
||||
'module_select': 0,
|
||||
'network': 'wifi',
|
||||
'page': pn,
|
||||
'page_size': '20',
|
||||
'page_size': 20,
|
||||
'platform': 'android',
|
||||
'qn': '0',
|
||||
'qn': 0,
|
||||
'sort_type': ?sortType,
|
||||
'tag_version': '1',
|
||||
'tag_version': 1,
|
||||
's_locale': 'zh_CN',
|
||||
'scale': '2',
|
||||
'scale': 2,
|
||||
'statistics': Constants.statisticsApp,
|
||||
'ts': (DateTime.now().millisecondsSinceEpoch ~/ 1000).toString(),
|
||||
'ts': DateTime.now().millisecondsSinceEpoch ~/ 1000,
|
||||
};
|
||||
AppSign.appSign(
|
||||
params,
|
||||
@@ -265,6 +287,23 @@ class LiveHttp {
|
||||
var res = await Request().get(
|
||||
Api.liveSecondList,
|
||||
queryParameters: params,
|
||||
options: Options(
|
||||
headers: {
|
||||
'buvid': LoginHttp.buvid,
|
||||
'fp_local':
|
||||
'1111111111111111111111111111111111111111111111111111111111111111',
|
||||
'fp_remote':
|
||||
'1111111111111111111111111111111111111111111111111111111111111111',
|
||||
'session_id': '11111111',
|
||||
'env': 'prod',
|
||||
'app-key': 'android',
|
||||
'User-Agent': Constants.userAgentApp,
|
||||
'x-bili-trace-id': Constants.traceId,
|
||||
'x-bili-aurora-eid': '',
|
||||
'x-bili-aurora-zone': '',
|
||||
'bili-http-engine': 'cronet',
|
||||
},
|
||||
),
|
||||
);
|
||||
if (res.data['code'] == 0) {
|
||||
return Success(LiveSecondData.fromJson(res.data['data']));
|
||||
@@ -280,11 +319,13 @@ class LiveHttp {
|
||||
if (isLogin) 'access_key': Accounts.main.accessKey,
|
||||
'appkey': Constants.appKey,
|
||||
'actionKey': 'appkey',
|
||||
'build': '8430300',
|
||||
'build': 8430300,
|
||||
'channel': 'master',
|
||||
'version': '8.43.0',
|
||||
'c_locale': 'zh_CN',
|
||||
'device': 'pad',
|
||||
'disable_rcmd': '0',
|
||||
'mobi_app': 'android_hd',
|
||||
'device': 'android',
|
||||
'disable_rcmd': 0,
|
||||
'mobi_app': 'android',
|
||||
'platform': 'android',
|
||||
's_locale': 'zh_CN',
|
||||
'statistics': Constants.statisticsApp,
|
||||
@@ -317,11 +358,13 @@ class LiveHttp {
|
||||
if (isLogin) 'access_key': Accounts.main.accessKey,
|
||||
'appkey': Constants.appKey,
|
||||
'actionKey': 'appkey',
|
||||
'build': '8430300',
|
||||
'build': 8430300,
|
||||
'channel': 'master',
|
||||
'version': '8.43.0',
|
||||
'c_locale': 'zh_CN',
|
||||
'device': 'pad',
|
||||
'disable_rcmd': '0',
|
||||
'mobi_app': 'android_hd',
|
||||
'device': 'android',
|
||||
'disable_rcmd': 0,
|
||||
'mobi_app': 'android',
|
||||
'platform': 'android',
|
||||
's_locale': 'zh_CN',
|
||||
'statistics': Constants.statisticsApp,
|
||||
@@ -357,11 +400,13 @@ class LiveHttp {
|
||||
'access_key': Accounts.main.accessKey,
|
||||
'appkey': Constants.appKey,
|
||||
'actionKey': 'appkey',
|
||||
'build': '8430300',
|
||||
'build': 8430300,
|
||||
'channel': 'master',
|
||||
'version': '8.43.0',
|
||||
'c_locale': 'zh_CN',
|
||||
'device': 'pad',
|
||||
'disable_rcmd': '0',
|
||||
'mobi_app': 'android_hd',
|
||||
'device': 'android',
|
||||
'disable_rcmd': 0,
|
||||
'mobi_app': 'android',
|
||||
'platform': 'android',
|
||||
's_locale': 'zh_CN',
|
||||
'statistics': Constants.statisticsApp,
|
||||
@@ -395,14 +440,16 @@ class LiveHttp {
|
||||
if (isLogin) 'access_key': Accounts.main.accessKey,
|
||||
'appkey': Constants.appKey,
|
||||
'actionKey': 'appkey',
|
||||
'build': '8430300',
|
||||
'build': 8430300,
|
||||
'channel': 'master',
|
||||
'version': '8.43.0',
|
||||
'c_locale': 'zh_CN',
|
||||
'device': 'pad',
|
||||
'disable_rcmd': '0',
|
||||
'device': 'android',
|
||||
'disable_rcmd': 0,
|
||||
'need_entrance': 1,
|
||||
'parent_id': parentid,
|
||||
'source_id': 2,
|
||||
'mobi_app': 'android_hd',
|
||||
'mobi_app': 'android',
|
||||
'platform': 'android',
|
||||
's_locale': 'zh_CN',
|
||||
'statistics': Constants.statisticsApp,
|
||||
@@ -436,14 +483,16 @@ class LiveHttp {
|
||||
if (isLogin) 'access_key': Accounts.main.accessKey,
|
||||
'appkey': Constants.appKey,
|
||||
'actionKey': 'appkey',
|
||||
'build': '8430300',
|
||||
'build': 8430300,
|
||||
'channel': 'master',
|
||||
'version': '8.43.0',
|
||||
'c_locale': 'zh_CN',
|
||||
'device': 'pad',
|
||||
'device': 'android',
|
||||
'page': page,
|
||||
'pagesize': 30,
|
||||
'keyword': keyword,
|
||||
'disable_rcmd': '0',
|
||||
'mobi_app': 'android_hd',
|
||||
'disable_rcmd': 0,
|
||||
'mobi_app': 'android',
|
||||
'platform': 'android',
|
||||
's_locale': 'zh_CN',
|
||||
'statistics': Constants.statisticsApp,
|
||||
|
||||
Reference in New Issue
Block a user