mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: danmaku filter (#486)
This commit is contained in:
committed by
GitHub
parent
066f3d4132
commit
99b14d0f0e
@@ -39,7 +39,8 @@ class DanmakuFilterHttp {
|
||||
}
|
||||
}
|
||||
|
||||
static Future danmakuFilterAdd({required String filter, required int type}) async {
|
||||
static Future danmakuFilterAdd(
|
||||
{required String filter, required int type}) async {
|
||||
var res = await Request().post(
|
||||
Api.danmakuFilterAdd,
|
||||
queryParameters: {
|
||||
@@ -51,7 +52,7 @@ class DanmakuFilterHttp {
|
||||
if (res.data['code'] == 0) {
|
||||
return {
|
||||
'status': true,
|
||||
'data': Rule.fromJson(res.data['data']),
|
||||
'data': SimpleRule.fromJson(res.data['data']),
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user