add
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user