mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-23 02:26:52 +08:00
@@ -884,4 +884,6 @@ class Api {
|
||||
static const String spaceSetting = '/x/space/setting/app';
|
||||
|
||||
static const String spaceSettingMod = '/x/space/privacy/batch/modify';
|
||||
|
||||
static const String vipExpAdd = '/x/vip/experience/add';
|
||||
}
|
||||
|
||||
@@ -383,4 +383,19 @@ class UserHttp {
|
||||
return {'status': false, 'msg': res.data['message']};
|
||||
}
|
||||
}
|
||||
|
||||
static Future vipExpAdd() async {
|
||||
final res = await Request().post(
|
||||
Api.vipExpAdd,
|
||||
queryParameters: {
|
||||
'mid': Accounts.main.mid,
|
||||
'csrf': Accounts.main.csrf,
|
||||
},
|
||||
);
|
||||
if (res.data['code'] == 0) {
|
||||
return {'status': true};
|
||||
} else {
|
||||
return {'status': false, 'msg': res.data['message']};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user