mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-20 09:06:36 +08:00
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user