Commit a54b989bf033e2de8ab69cdff3b29bfbb2cec2dd
1 parent
1b803f6b
云测bug修改
Showing
4 changed files
with
30 additions
and
6 deletions
CNLiveNewIMAManagerKit.podspec
| @@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
| 8 | 8 | ||
| 9 | Pod::Spec.new do |s| | 9 | Pod::Spec.new do |s| |
| 10 | s.name = 'CNLiveNewIMAManagerKit' | 10 | s.name = 'CNLiveNewIMAManagerKit' |
| 11 | - s.version = '0.1.5' | 11 | + s.version = '0.1.6' |
| 12 | s.summary = 'A short description of CNLiveNewIMAManagerKit.' | 12 | s.summary = 'A short description of CNLiveNewIMAManagerKit.' |
| 13 | 13 | ||
| 14 | # This description is used to generate tags and improve search results. | 14 | # This description is used to generate tags and improve search results. |
CNLiveNewIMAManagerKit/Classes/Playform/IMAContactManager.m
| @@ -248,7 +248,7 @@ | @@ -248,7 +248,7 @@ | ||
| 248 | return YES; | 248 | return YES; |
| 249 | } | 249 | } |
| 250 | NSInteger index = [self.friendsList indexOfObject:user]; | 250 | NSInteger index = [self.friendsList indexOfObject:user]; |
| 251 | - if (index >= 0 && index < self.friendsList.count) | 251 | + if (index >= 0 && index < self.friendsList.count && user.blackType == CNFriendsCheckResultTypeFriends) |
| 252 | { | 252 | { |
| 253 | return YES; | 253 | return YES; |
| 254 | } | 254 | } |
CNLiveNewIMAManagerKit/Classes/TIMModel/MSG/IMAMsg.m
| @@ -950,6 +950,30 @@ | @@ -950,6 +950,30 @@ | ||
| 950 | // 语音消息单独处理xxxx | 950 | // 语音消息单独处理xxxx |
| 951 | attStr = [[NSMutableAttributedString alloc] initWithString:[elem showDescriptionOf:self] attributes:@{NSFontAttributeName :UIFontCNMake(14), NSForegroundColorAttributeName : [self tipTextColor]}]; | 951 | attStr = [[NSMutableAttributedString alloc] initWithString:[elem showDescriptionOf:self] attributes:@{NSFontAttributeName :UIFontCNMake(14), NSForegroundColorAttributeName : [self tipTextColor]}]; |
| 952 | } | 952 | } |
| 953 | + else if(self.type == EIMAMSG_TransferBalance) | ||
| 954 | + { | ||
| 955 | + //对转余额消息进行特殊处理 | ||
| 956 | + attStr = [[NSMutableAttributedString alloc] initWithString:[elem showDescriptionOf:self] attributes:@{NSFontAttributeName : UIFontCNMake(14), NSForegroundColorAttributeName : KGray101Color}]; | ||
| 957 | + /**对打款方收到对方已收款或者已退还消息,会话列表对“【转余额】” 文字颜色改为红色*/ | ||
| 958 | + TIMCustomElem *customElem = (TIMCustomElem *)elem; | ||
| 959 | + NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:customElem.data options:NSJSONReadingMutableContainers | NSJSONReadingMutableLeaves error:nil]; | ||
| 960 | + NSDictionary *transferBalanceData = dic[@"transferBalanceData"]; | ||
| 961 | + /**type 1:待收款, 2:已收款, 3:被退还*/ | ||
| 962 | + NSString *type = [NSString stringWithFormat:@"%@",transferBalanceData[@"type"]]; | ||
| 963 | + NSString *fromId = transferBalanceData[@"fromId"]; | ||
| 964 | + if ([fromId isEqualToString:CNUserShareModel.uid] && ![self.msg isReaded]) { | ||
| 965 | + switch ([type intValue]) { | ||
| 966 | + case 2: | ||
| 967 | + case 3: | ||
| 968 | + { | ||
| 969 | + [attStr addAttribute:NSForegroundColorAttributeName value:[UIColor redColor] range:NSMakeRange(0, 5)]; | ||
| 970 | + } | ||
| 971 | + break; | ||
| 972 | + default: | ||
| 973 | + break; | ||
| 974 | + } | ||
| 975 | + } | ||
| 976 | + } | ||
| 953 | else | 977 | else |
| 954 | attStr = [[NSMutableAttributedString alloc] initWithString:[elem showDescriptionOf:self] attributes:@{NSFontAttributeName : UIFontCNMake(14), NSForegroundColorAttributeName : KGray101Color}]; | 978 | attStr = [[NSMutableAttributedString alloc] initWithString:[elem showDescriptionOf:self] attributes:@{NSFontAttributeName : UIFontCNMake(14), NSForegroundColorAttributeName : KGray101Color}]; |
| 955 | 979 |
CNLiveNewIMAManagerKit/Classes/TIMShow/TIMElem+ShowDescription.m
| @@ -799,13 +799,13 @@ static NSString *const kGroupTypeKey = @"kGroupTypeKey"; | @@ -799,13 +799,13 @@ static NSString *const kGroupTypeKey = @"kGroupTypeKey"; | ||
| 799 | case 2: | 799 | case 2: |
| 800 | { | 800 | { |
| 801 | //已收款 | 801 | //已收款 |
| 802 | - return @"[转余额]对方已收款"; | 802 | + return @"[转余额]已收余额"; |
| 803 | } | 803 | } |
| 804 | break; | 804 | break; |
| 805 | case 3: | 805 | case 3: |
| 806 | { | 806 | { |
| 807 | //已退还 | 807 | //已退还 |
| 808 | - return @"[转余额]对方已退还"; | 808 | + return @"[转余额]已退还"; |
| 809 | } | 809 | } |
| 810 | break; | 810 | break; |
| 811 | default: | 811 | default: |
| @@ -826,14 +826,14 @@ static NSString *const kGroupTypeKey = @"kGroupTypeKey"; | @@ -826,14 +826,14 @@ static NSString *const kGroupTypeKey = @"kGroupTypeKey"; | ||
| 826 | else | 826 | else |
| 827 | { | 827 | { |
| 828 | //未领取 | 828 | //未领取 |
| 829 | - return @"待你领取余额"; | 829 | + return @"请收余额"; |
| 830 | } | 830 | } |
| 831 | } | 831 | } |
| 832 | break; | 832 | break; |
| 833 | case 2: | 833 | case 2: |
| 834 | { | 834 | { |
| 835 | //已收款 | 835 | //已收款 |
| 836 | - return @"[转余额]已收款"; | 836 | + return @"[转余额]已收余额"; |
| 837 | } | 837 | } |
| 838 | break; | 838 | break; |
| 839 | case 3: | 839 | case 3: |