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,7 +172,7 @@ | ||
| 172 | - (void)userInfoUpdateNotification:(NSNotification *)noti{ | 172 | - (void)userInfoUpdateNotification:(NSNotification *)noti{ |
| 173 | //使用userInfo处理消息 | 173 | //使用userInfo处理消息 |
| 174 | NSDictionary *dic = [noti userInfo]; | 174 | NSDictionary *dic = [noti userInfo]; |
| 175 | - CNLiveUserInfoDataType dataType = [[dic objectForKey:@"type"] integerValue]; | 175 | + CNLiveUserInfoDataType dataType = [[dic objectForKey:@"dataType"] integerValue]; |
| 176 | NSString *info = [dic objectForKey:@"info"]; | 176 | NSString *info = [dic objectForKey:@"info"]; |
| 177 | 177 | ||
| 178 | // 更新cell展示信息 | 178 | // 更新cell展示信息 |
CNLiveMineModule/Classes/UserInfo/CNLiveUserInfoNotification.m
| @@ -13,7 +13,7 @@ | @@ -13,7 +13,7 @@ | ||
| 13 | NSString * const kCNLiveUserInfoUpdateNotification = @"CNLiveUserInfoUpdateNotification"; | 13 | NSString * const kCNLiveUserInfoUpdateNotification = @"CNLiveUserInfoUpdateNotification"; |
| 14 | 14 | ||
| 15 | + (void)postUserInfoUpdateNotificationType:(CNLiveUserInfoDataType)type info:(id)info{ | 15 | + (void)postUserInfoUpdateNotificationType:(CNLiveUserInfoDataType)type info:(id)info{ |
| 16 | - NSDictionary *dic = @{@"type":@(type),@"info":info}; | 16 | + NSDictionary *dic = @{@"dataType":@(type),@"info":info}; |
| 17 | [[NSNotificationCenter defaultCenter] postNotificationName:kCNLiveUserInfoUpdateNotification object:nil userInfo:dic]; | 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,7 +44,7 @@ static const NSInteger margin = 20; | ||
| 44 | - (void)userInfoUpdateNotification:(NSNotification *)noti{ | 44 | - (void)userInfoUpdateNotification:(NSNotification *)noti{ |
| 45 | //使用userInfo处理消息 | 45 | //使用userInfo处理消息 |
| 46 | NSDictionary *dic = [noti userInfo]; | 46 | NSDictionary *dic = [noti userInfo]; |
| 47 | - CNLiveUserInfoDataType type = [[dic objectForKey:@"type"] integerValue]; | 47 | + CNLiveUserInfoDataType type = [[dic objectForKey:@"dataType"] integerValue]; |
| 48 | NSString *info = [dic objectForKey:@"info"]; | 48 | NSString *info = [dic objectForKey:@"info"]; |
| 49 | if(type == CNLiveUserInfoDataTypeHead){ | 49 | if(type == CNLiveUserInfoDataTypeHead){ |
| 50 | UIImage *xw_image = [self getImageWithImageName:@"default_avatar_y" bundleName:@"CNLiveMineModule" targetClass:[CNLiveMineHeaderView class]]; | 50 | UIImage *xw_image = [self getImageWithImageName:@"default_avatar_y" bundleName:@"CNLiveMineModule" targetClass:[CNLiveMineHeaderView class]]; |