opt: share origin img & lazy to opus (#768)

* opt: type

* opt: share origin img

* opt: lazy to opus
This commit is contained in:
My-Responsitories
2025-04-28 14:17:41 +08:00
committed by GitHub
parent a831b41623
commit 7f93b42a1b
7 changed files with 196 additions and 263 deletions

View File

@@ -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';
}

View File

@@ -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']};
}
}
}