mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-22 01:56:47 +08:00
opt: common ctr
opt: state Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -42,11 +42,11 @@ class FollowHttp {
|
||||
});
|
||||
|
||||
if (res.data['code'] == 0) {
|
||||
return LoadingState.success(
|
||||
return Success(
|
||||
FollowDataModel.fromJson(res.data['data']),
|
||||
);
|
||||
} else {
|
||||
return LoadingState.error(res.data['message']);
|
||||
return Error(res.data['message']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user