Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2026-01-02 12:05:31 +08:00
parent 80e007bac6
commit 041af37bb0
67 changed files with 775 additions and 838 deletions

View File

@@ -28,18 +28,19 @@ class SpaceSettingController
UserHttp.spaceSetting();
Future<void> onMod() async {
if ((hasMod ?? false) && loadingState.value.isSuccess) {
Privacy? data = loadingState.value.data;
if (data != null) {
final res = await UserHttp.spaceSettingMod(
{
for (final e in data.list1) e.key: e.value,
for (final e in data.list2) e.key: e.value,
for (final e in data.list3) e.key: e.value,
},
);
if (!res.isSuccess) {
res.toast();
if (hasMod ?? false) {
if (loadingState.value case Success(:final response)) {
if (response != null) {
final res = await UserHttp.spaceSettingMod(
{
for (final e in response.list1) e.key: e.value,
for (final e in response.list2) e.key: e.value,
for (final e in response.list3) e.key: e.value,
},
);
if (!res.isSuccess) {
res.toast();
}
}
}
}