动态接口对接

This commit is contained in:
liyuhua
2023-12-13 19:36:00 +08:00
parent 1a90a9d9c4
commit 60a5983a98
12 changed files with 133 additions and 30 deletions

View File

@@ -125,11 +125,15 @@
-(void)getUserInfo
{
WeakSelf(weakSelf)
NSString *uid = [[AccountInfoStorage instance]getUid];
[Api getUserInfo:^(BaseModel * _Nullable data, NSInteger code, NSString * _Nullable msg) {
if(code == 200){
UserInfoModel *userModel = [UserInfoModel DD_ModelWithDict:data.data];
if ([self.user_id isEqualToString:uid]) {
self.moreButton.hidden = YES;
[weakSelf.view addSubview:weakSelf.editBtn];
}
self.userModel = userModel;
weakSelf.profileVC.personModel = userModel;
weakSelf.titLabel.text = userModel.nick;