mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 08:08:19 +08:00
tweaks (#1802)
* opt: uuid * tweak * opt: SlideDialog * mod: fvmrc [skip ci] * Revert "mod: fvmrc [skip ci]" This reverts commit500fd7f454. * Revert "opt: SlideDialog" This reverts commitb435a312a6. --------- Co-authored-by: dom <githubaccount56556@proton.me>
This commit is contained in:
committed by
GitHub
parent
34a839d9e2
commit
c40d794180
@@ -18,7 +18,7 @@ import 'package:PiliPlus/models_new/upload_bfs/data.dart';
|
||||
import 'package:PiliPlus/utils/accounts.dart';
|
||||
import 'package:PiliPlus/utils/wbi_sign.dart';
|
||||
import 'package:dio/dio.dart';
|
||||
import 'package:uuid/uuid.dart';
|
||||
import 'package:uuid/v4.dart';
|
||||
|
||||
abstract final class MsgHttp {
|
||||
static Future<LoadingState<MsgReplyData>> msgFeedReplyMe({
|
||||
@@ -426,7 +426,7 @@ abstract final class MsgHttp {
|
||||
}
|
||||
|
||||
static String getDevId() {
|
||||
return const Uuid().v4();
|
||||
return const UuidV4().generate();
|
||||
}
|
||||
|
||||
static Future<LoadingState<Null>> msgSetNotice({
|
||||
|
||||
@@ -44,13 +44,12 @@ abstract final class UserHttp {
|
||||
}
|
||||
}
|
||||
|
||||
static Future<dynamic> userStatOwner() async {
|
||||
static Future<LoadingState<UserStat>> userStatOwner() async {
|
||||
final res = await Request().get(Api.userStatOwner);
|
||||
if (res.data['code'] == 0) {
|
||||
UserStat data = UserStat.fromJson(res.data['data']);
|
||||
return {'status': true, 'data': data};
|
||||
return Success(UserStat.fromJson(res.data['data']));
|
||||
} else {
|
||||
return {'status': false, 'msg': res.data['message']};
|
||||
return Error(res.data['message']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user