mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: share origin img & lazy to opus (#768)
* opt: type * opt: share origin img * opt: lazy to opus
This commit is contained in:
committed by
GitHub
parent
a831b41623
commit
7f93b42a1b
@@ -786,6 +786,4 @@ class Api {
|
||||
static const String articleView = '/x/article/view';
|
||||
|
||||
static const String opusDetail = '/x/polymer/web-dynamic/v1/opus/detail';
|
||||
|
||||
static const String feedInfoWeb = '${HttpString.tUrl}/x/im/feed/infoweb';
|
||||
}
|
||||
|
||||
@@ -570,26 +570,4 @@ 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']};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user