mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-19 00:26:18 +08:00
fix rm top dyn
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -775,6 +775,8 @@ class Api {
|
||||
|
||||
static const String setTopDyn = '/x/dynamic/feed/space/set_top';
|
||||
|
||||
static const String rmTopDyn = '/x/dynamic/feed/space/rm_top';
|
||||
|
||||
static const String searchRecommend =
|
||||
'${HttpString.appBaseUrl}/x/v2/search/recommend';
|
||||
|
||||
|
||||
@@ -273,6 +273,25 @@ class DynamicsHttp {
|
||||
}
|
||||
}
|
||||
|
||||
static Future rmTop({
|
||||
required dynamic dynamicId,
|
||||
}) async {
|
||||
var res = await Request().post(
|
||||
Api.rmTopDyn,
|
||||
queryParameters: {
|
||||
'csrf': Accounts.main.csrf,
|
||||
},
|
||||
data: {
|
||||
'dyn_str': dynamicId,
|
||||
},
|
||||
);
|
||||
if (res.data['code'] == 0) {
|
||||
return {'status': true};
|
||||
} else {
|
||||
return {'status': false, 'msg': res.data['message']};
|
||||
}
|
||||
}
|
||||
|
||||
static Future articleInfo({
|
||||
required dynamic cvId,
|
||||
}) async {
|
||||
|
||||
Reference in New Issue
Block a user