mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
chore: code clean up
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import 'dart:io';
|
||||
import 'dart:math';
|
||||
import 'package:PiliPalaX/http/constants.dart';
|
||||
import 'package:PiliPalaX/pages/dynamics/view.dart' show ReplyOption;
|
||||
import 'package:PiliPalaX/utils/storage.dart';
|
||||
import 'package:dio/dio.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
import '../models/msg/account.dart';
|
||||
import '../models/msg/session.dart';
|
||||
@@ -72,7 +71,6 @@ class MsgHttp {
|
||||
static Future msgFeedSysUserNotify() async {
|
||||
String csrf = await Request.getCsrf();
|
||||
var res = await Request().get(Api.msgSysUserNotify, data: {
|
||||
'csrf': csrf,
|
||||
'csrf': csrf,
|
||||
'page_size': 20,
|
||||
});
|
||||
@@ -93,7 +91,6 @@ class MsgHttp {
|
||||
static Future msgFeedSysUnifiedNotify() async {
|
||||
String csrf = await Request.getCsrf();
|
||||
var res = await Request().get(Api.msgSysUnifiedNotify, data: {
|
||||
'csrf': csrf,
|
||||
'csrf': csrf,
|
||||
'page_size': 10,
|
||||
});
|
||||
@@ -114,7 +111,6 @@ class MsgHttp {
|
||||
static Future msgSysUpdateCursor(int cursor) async {
|
||||
String csrf = await Request.getCsrf();
|
||||
var res = await Request().get(Api.msgSysUpdateCursor, data: {
|
||||
'csrf': csrf,
|
||||
'csrf': csrf,
|
||||
'cursor': cursor,
|
||||
});
|
||||
@@ -442,7 +438,7 @@ class MsgHttp {
|
||||
.toList(),
|
||||
};
|
||||
} catch (err) {
|
||||
print('err🔟: $err');
|
||||
debugPrint('err🔟: $err');
|
||||
}
|
||||
} else {
|
||||
return {
|
||||
@@ -472,7 +468,7 @@ class MsgHttp {
|
||||
'data': SessionMsgDataModel.fromJson(res.data['data']),
|
||||
};
|
||||
} catch (err) {
|
||||
print(err);
|
||||
debugPrint(err.toString());
|
||||
}
|
||||
} else {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user