From d13bb734b1109ddafadc7beba8a1c6cc65ead429 Mon Sep 17 00:00:00 2001 From: CodeST <694468528@qq.com> Date: Thu, 4 Dec 2025 14:53:25 +0800 Subject: [PATCH] 1 --- keyBoard/Class/Me/VC/KBPersonInfoVC.m | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/keyBoard/Class/Me/VC/KBPersonInfoVC.m b/keyBoard/Class/Me/VC/KBPersonInfoVC.m index 884fb04..d8688ad 100644 --- a/keyBoard/Class/Me/VC/KBPersonInfoVC.m +++ b/keyBoard/Class/Me/VC/KBPersonInfoVC.m @@ -178,6 +178,13 @@ NSMutableDictionary *d0 = [m.firstObject mutableCopy]; d0[@"value"] = nickname; m[0] = d0; weakSelf.items = m; [weakSelf.tableView reloadRowsAtIndexPaths:@[[NSIndexPath indexPathForRow:0 inSection:0]] withRowAnimation:UITableViewRowAnimationNone]; + + // 将修改后的用户信息同步到服务端 + [weakSelf.myVM updateUserInfo:weakSelf.userModel completion:^(BOOL success, NSError * _Nullable error) { + if (error) { + [KBHUD showError:error.localizedDescription ?: KBLocalized(@"Network error")]; + } + }]; } [weakPop dismiss]; }; @@ -232,6 +239,14 @@ NSMutableDictionary *d1 = [m[1] mutableCopy]; d1[@"value"] = name; m[1] = d1; weakSelf.items = m; [weakSelf.tableView reloadRowsAtIndexPaths:@[[NSIndexPath indexPathForRow:1 inSection:0]] withRowAnimation:UITableViewRowAnimationNone]; + + // 将修改后的用户信息同步到服务端 + [weakSelf.myVM updateUserInfo:weakSelf.userModel completion:^(BOOL success, NSError * _Nullable error) { + if (error) { + [KBHUD showError:error.localizedDescription ?: KBLocalized(@"Network error")]; + } + }]; + [weakPop dismiss]; };