Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-23 16:19:18 +08:00
parent b1432b5ff5
commit 148e0872b4
17 changed files with 126 additions and 127 deletions

View File

@@ -26,8 +26,8 @@ class MsgHttp {
var res = await Request().get(
Api.msgFeedReply,
queryParameters: {
if (cursor != null) 'id': cursor,
if (cursorTime != null) 'reply_time': cursorTime,
'id': ?cursor,
'reply_time': ?cursorTime,
'platform': 'web',
'mobi_app': 'web',
'build': 0,
@@ -46,8 +46,8 @@ class MsgHttp {
var res = await Request().get(
Api.msgFeedAt,
queryParameters: {
if (cursor != null) 'id': cursor,
if (cursorTime != null) 'at_time': cursorTime,
'id': ?cursor,
'at_time': ?cursorTime,
'platform': 'web',
'mobi_app': 'web',
'build': 0,
@@ -64,8 +64,8 @@ class MsgHttp {
static Future<LoadingState<MsgLikeData>> msgFeedLikeMe(
{int? cursor, int? cursorTime}) async {
var res = await Request().get(Api.msgFeedLike, queryParameters: {
if (cursor != null) 'id': cursor,
if (cursorTime != null) 'like_time': cursorTime,
'id': ?cursor,
'like_time': ?cursorTime,
'platform': 'web',
'mobi_app': 'web',
'build': 0,
@@ -106,7 +106,7 @@ class MsgHttp {
var res = await Request().get(
Api.msgSysNotify,
queryParameters: {
if (cursor != null) 'cursor': cursor,
'cursor': ?cursor,
'page_size': pageSize,
'mobi_app': 'web',
'build': 0,
@@ -176,8 +176,8 @@ class MsgHttp {
final file = await MultipartFile.fromFile(path);
Map<String, dynamic> data = {
'file_up': file,
if (category != null) 'category': category,
if (biz != null) 'biz': biz,
'category': ?category,
'biz': ?biz,
'csrf': Accounts.main.csrf,
};
var res = await Request().post(
@@ -233,8 +233,8 @@ class MsgHttp {
},
data: {
"dyn_id_str": dynIdStr,
if (dynType != null) "dyn_type": dynType,
if (ridStr != null) "rid_str": ridStr,
"dyn_type": ?dynType,
"rid_str": ?ridStr,
},
);
if (res.data['code'] == 0) {