opt view later

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-07 15:00:21 +08:00
parent 13f1392821
commit e3c920dc87
16 changed files with 182 additions and 125 deletions

View File

@@ -130,15 +130,13 @@ class UserHttp {
// 稍后再看
static Future toViewLater({String? bvid, dynamic aid}) async {
var data = {'csrf': Accounts.main.csrf};
if (bvid != null) {
data['bvid'] = bvid;
} else if (aid != null) {
data['aid'] = aid;
}
var res = await Request().post(
Api.toViewLater,
queryParameters: data,
queryParameters: {
if (aid != null) 'aid': aid,
if (bvid != null) 'bvid': bvid,
'csrf': Accounts.main.csrf,
},
);
if (res.data['code'] == 0) {
return {'status': true, 'msg': 'yeah稍后再看'};