Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-23 16:47:11 +08:00
parent 148e0872b4
commit 418a1e8d39
821 changed files with 29467 additions and 25520 deletions

View File

@@ -3,15 +3,18 @@ import 'package:PiliPlus/http/init.dart';
class CommonHttp {
static Future unReadDynamic() async {
var res = await Request().get(Api.getUnreadDynamic, queryParameters: {
'alltype_offset': 0,
'video_offset': 0,
'article_offset': 0,
});
var res = await Request().get(
Api.getUnreadDynamic,
queryParameters: {
'alltype_offset': 0,
'video_offset': 0,
'article_offset': 0,
},
);
if (res.data['code'] == 0) {
return {
'status': true,
'data': res.data['data']['update_info']['item']['count']
'data': res.data['data']['update_info']['item']['count'],
};
} else {
return {