Commit 4ba9558327bef8d8ba729a830f42278869b57275
1 parent
40722ba0
no message
Showing
3 changed files
with
3 additions
and
3 deletions
CNLiveMineModule/Classes/UserInfo/CNLiveUserInfoController.m
| ... | ... | @@ -172,7 +172,7 @@ |
| 172 | 172 | - (void)userInfoUpdateNotification:(NSNotification *)noti{ |
| 173 | 173 | //使用userInfo处理消息 |
| 174 | 174 | NSDictionary *dic = [noti userInfo]; |
| 175 | - CNLiveUserInfoDataType dataType = [[dic objectForKey:@"type"] integerValue]; | |
| 175 | + CNLiveUserInfoDataType dataType = [[dic objectForKey:@"dataType"] integerValue]; | |
| 176 | 176 | NSString *info = [dic objectForKey:@"info"]; |
| 177 | 177 | |
| 178 | 178 | // 更新cell展示信息 | ... | ... |
CNLiveMineModule/Classes/UserInfo/CNLiveUserInfoNotification.m
| ... | ... | @@ -13,7 +13,7 @@ |
| 13 | 13 | NSString * const kCNLiveUserInfoUpdateNotification = @"CNLiveUserInfoUpdateNotification"; |
| 14 | 14 | |
| 15 | 15 | + (void)postUserInfoUpdateNotificationType:(CNLiveUserInfoDataType)type info:(id)info{ |
| 16 | - NSDictionary *dic = @{@"type":@(type),@"info":info}; | |
| 16 | + NSDictionary *dic = @{@"dataType":@(type),@"info":info}; | |
| 17 | 17 | [[NSNotificationCenter defaultCenter] postNotificationName:kCNLiveUserInfoUpdateNotification object:nil userInfo:dic]; |
| 18 | 18 | |
| 19 | 19 | } | ... | ... |
CNLiveMineModule/Classes/View/CNLiveMineHeaderView.m
| ... | ... | @@ -44,7 +44,7 @@ static const NSInteger margin = 20; |
| 44 | 44 | - (void)userInfoUpdateNotification:(NSNotification *)noti{ |
| 45 | 45 | //使用userInfo处理消息 |
| 46 | 46 | NSDictionary *dic = [noti userInfo]; |
| 47 | - CNLiveUserInfoDataType type = [[dic objectForKey:@"type"] integerValue]; | |
| 47 | + CNLiveUserInfoDataType type = [[dic objectForKey:@"dataType"] integerValue]; | |
| 48 | 48 | NSString *info = [dic objectForKey:@"info"]; |
| 49 | 49 | if(type == CNLiveUserInfoDataTypeHead){ |
| 50 | 50 | UIImage *xw_image = [self getImageWithImageName:@"default_avatar_y" bundleName:@"CNLiveMineModule" targetClass:[CNLiveMineHeaderView class]]; | ... | ... |