1
This commit is contained in:
@@ -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];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user