mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
opt block
Closes #1074 Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -613,6 +613,13 @@ class VideoHttp {
|
||||
),
|
||||
);
|
||||
if (res.data['code'] == 0) {
|
||||
if (act == 5) {
|
||||
// block
|
||||
Pref.setBlackMid(mid);
|
||||
} else if (act == 6) {
|
||||
// unblock
|
||||
Pref.removeBlackMid(mid);
|
||||
}
|
||||
return {'status': true};
|
||||
} else {
|
||||
return {'status': false, 'msg': res.data['message']};
|
||||
|
||||
Reference in New Issue
Block a user