mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-23 12:00:13 +08:00
feat: live feedback (#2456)
This commit is contained in:
committed by
GitHub
parent
2d389424af
commit
3a5636ecee
@@ -765,4 +765,41 @@ abstract final class LiveHttp {
|
||||
return Error(res.data['message']);
|
||||
}
|
||||
}
|
||||
|
||||
static Future<LoadingState<void>> liveFeedback(
|
||||
Object roomId,
|
||||
Object id,
|
||||
String type, {
|
||||
int page = 1,
|
||||
}) async {
|
||||
final params = {
|
||||
'access_key': ?recommend.accessKey,
|
||||
'actionKey': 'appkey',
|
||||
'build': 8430300,
|
||||
'channel': 'master',
|
||||
'c_locale': 'zh_CN',
|
||||
'device': 'android',
|
||||
'disable_rcmd': 0,
|
||||
'mobi_app': 'android',
|
||||
'platform': 'android',
|
||||
's_locale': 'zh_CN',
|
||||
'statistics': Constants.statisticsApp,
|
||||
'version': '8.43.0',
|
||||
'id': id,
|
||||
'id_type': type,
|
||||
'room_id': roomId,
|
||||
'type': 'dislike',
|
||||
'page': page,
|
||||
};
|
||||
AppSign.appSign(params);
|
||||
final res = await Request().get(
|
||||
Api.liveFeedback,
|
||||
queryParameters: params,
|
||||
);
|
||||
if (res.data['code'] == 0) {
|
||||
return const Success(null);
|
||||
} else {
|
||||
return Error(res.data['message']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user