opt: addUsers

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-24 10:35:39 +08:00
parent 65eecb8dcf
commit 33b8902375
2 changed files with 11 additions and 9 deletions

View File

@@ -504,12 +504,16 @@ class MemberHttp {
}
// 设置分组
static Future addUsers(int? fids, String? tagids) async {
static Future addUsers(List<int?> fids, List<int?> tagids) async {
var res = await Request().post(
Api.addUsers,
queryParameters: {
'x-bili-device-req-json':
'{"platform":"web","device":"pc","spmid":"333.1387"}'
},
data: {
'fids': fids,
'tagids': tagids ?? '0',
'fids': fids.join(','),
'tagids': tagids.join(','),
'csrf': Accounts.main.csrf,
// 'cross_domain': true
},