mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: history: full type
Closes #473 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -96,9 +96,9 @@ class Request {
|
||||
//请求基地址,可以包含子路径
|
||||
baseUrl: HttpString.apiBaseUrl,
|
||||
//连接服务器超时时间,单位是毫秒.
|
||||
connectTimeout: const Duration(milliseconds: 4000),
|
||||
connectTimeout: const Duration(milliseconds: 10000),
|
||||
//响应流上前后两次接受到数据的间隔,单位为毫秒。
|
||||
receiveTimeout: const Duration(milliseconds: 4000),
|
||||
receiveTimeout: const Duration(milliseconds: 10000),
|
||||
//Http请求头.
|
||||
headers: {
|
||||
'connection': 'keep-alive',
|
||||
|
||||
@@ -196,11 +196,12 @@ class UserHttp {
|
||||
|
||||
// 观看历史
|
||||
static Future<LoadingState> historyList({
|
||||
required String type,
|
||||
int? max,
|
||||
int? viewAt,
|
||||
}) async {
|
||||
var res = await Request().get(Api.historyList, queryParameters: {
|
||||
'type': 'all',
|
||||
'type': type,
|
||||
'ps': 20,
|
||||
'max': max ?? 0,
|
||||
'view_at': viewAt ?? 0,
|
||||
|
||||
Reference in New Issue
Block a user