mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: request err code
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -211,7 +211,7 @@ class Request {
|
||||
data: {
|
||||
'message': await AccountManager.dioError(e)
|
||||
}, // 将自定义 Map 数据赋值给 Response 的 data 属性
|
||||
statusCode: -1,
|
||||
statusCode: e.response?.statusCode ?? -1,
|
||||
requestOptions: RequestOptions(),
|
||||
);
|
||||
return errResponse;
|
||||
@@ -240,7 +240,7 @@ class Request {
|
||||
data: {
|
||||
'message': await AccountManager.dioError(e)
|
||||
}, // 将自定义 Map 数据赋值给 Response 的 data 属性
|
||||
statusCode: -1,
|
||||
statusCode: e.response?.statusCode ?? -1,
|
||||
requestOptions: RequestOptions(),
|
||||
);
|
||||
return errResponse;
|
||||
@@ -269,7 +269,7 @@ class Request {
|
||||
data: {
|
||||
'message': await AccountManager.dioError(e),
|
||||
},
|
||||
statusCode: -1,
|
||||
statusCode: e.response?.statusCode ?? -1,
|
||||
requestOptions: RequestOptions(),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -383,14 +383,12 @@ class _PostPanelState extends CommonCollapseSlidePageState<PostPanel> {
|
||||
Get.back();
|
||||
Request().post(
|
||||
'${GStorage.blockServer}/api/skipSegments',
|
||||
queryParameters: {
|
||||
data: {
|
||||
'videoID': videoDetailController.bvid,
|
||||
'cid': videoDetailController.cid.value,
|
||||
'userID': GStorage.blockUserID,
|
||||
'userAgent': Constants.userAgent,
|
||||
'videoDuration': videoDuration,
|
||||
},
|
||||
data: {
|
||||
'segments': list!
|
||||
.map(
|
||||
(item) => {
|
||||
|
||||
Reference in New Issue
Block a user