opt: share article

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-27 21:55:21 +08:00
parent 6d7b0e8dd5
commit 8fe6e3f4b7
4 changed files with 48 additions and 3 deletions

View File

@@ -570,4 +570,26 @@ class MsgHttp {
static String getDevId() {
return Uuid().v4();
}
static Future feedInfoWeb({
List? aids,
List? epIds,
List? articleIds,
}) async {
var res = await Request().get(
Api.feedInfoWeb,
queryParameters: {
if (aids != null) 'aids': aids.join(','),
if (epIds != null) 'ep_ids': epIds.join(','),
if (articleIds != null) 'article_ids': articleIds.join(','),
'build': 0,
'mobi_app': 'web',
},
);
if (res.data['code'] == 0) {
return {'status': true, 'data': res.data['data']};
} else {
return {'status': false, 'msg': res.data['message']};
}
}
}