xiongzhu 7 rokov pred
rodič
commit
3f0f84906a

+ 8 - 0
model/Classes/Controllers/Controller/MessageVC/MessageViewController.m

@@ -35,6 +35,14 @@ NSString *const NIMDemoEventNameCloseSnapPicture = @"NIMDemoEventNameCloseSnapPi
 //    [self setupNav];
 }
 
+- (void)viewDidLayoutSubviews {
+    [super viewDidLayoutSubviews];
+    if ([@"system" isEqualToString:self.session.sessionId]) {
+        self.sessionInputView.hidden = YES;
+        [self.tableView setFrame: CGRectMake(0, self.navigationController.navigationBar.frame.size.height, ScreenWidth, self.view.frame.size.height - self.navigationController.navigationBar.frame.size.height)];
+    }
+}
+
 - (void)setupNav{
     [super setUpTitleView];
     if ([UIScreen spt_currentScreenMode]== LESScreenModeIPhoneX){

+ 1 - 0
model/Classes/Controllers/Controller/SettingsVC/SettingsViewController.m

@@ -94,6 +94,7 @@
                                                [ModelUser save:user];
                                                
                                                self.nickname.text = [NSString stringWithFormat:@"%@", dataDic[@"data"][@"pet"]];
+                                               self.phone.text = [NSString stringWithFormat:@"%@", dataDic[@"data"][@"tel"]];
                                                [self.avatar sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/%@", PublicUrl, dataDic[@"data"][@"hphoto"]]] placeholderImage:[UIImage imageNamed:@"morentouxiang"]];
                                                
                                                //            if ([dataDic[@"data"][@"hasred"] isEqualToString:@"1"]) {