This commit is contained in:
lianxiang
2018-10-12 09:12:54 +08:00
parent dc1b1e330f
commit 97af177b88
37 changed files with 583 additions and 173 deletions
@@ -308,8 +308,7 @@
if (!self.user.nickName || [self.user.nickName isKindOfClass:[NSNull class]]) {
self.user.nickName = @"";
}
if ( self.user.nickName.length >40 ) {
GIGA_ShowToast(@"用户名1-40字符长度")
return;
@@ -353,12 +352,11 @@
[api requstDataWithResult:^(GiGaAPIResult *result) {
[self.view hideToastActivity];
if (result.success) {
GIGA_ShowToast(@"修改成功");
GIGA_WIndowTost(@"修改成功")
[[GiGaUserManager shareUser] saveUser:self.user];
NC_POST_NAME_OBJECT(kUserNameUpDateNoti, nil);
[self.navigationController popViewControllerAnimated:YES];
}else{
GIGA_ShowToast(result.dic[@"msg"]);
if (result.code == 401) {