Skip to content

Commit 7606ceb

Browse files
guangyaoguangyao
authored andcommitted
fix领取红包显示
1 parent c786a61 commit 7606ceb

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

ios/RNNeteaseIm/RNNeteaseIm/ConversationViewController.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -872,9 +872,7 @@ - (NSDictionary *)dealWithData:(NSDictionary *)dict{
872872
NSString *strOpenName = [self getUserName:strOpenId];
873873
strContent = [NSString stringWithFormat:@"%@领取了你的红包%@",strOpenName,lastString];
874874
}else{//别人发的别人领的
875-
NSString *strSenderName = [self getUserName:strSendId];
876-
NSString *strOpenName = [self getUserName:strOpenId];
877-
strContent = [NSString stringWithFormat:@"%@领取了%@的红包",strOpenName,strSenderName];
875+
return nil;
878876
}
879877
NSDictionary *dataDict = @{@"tipMsg":strContent,@"serialNo":strNo};
880878
return dataDict;

ios/RNNeteaseIm/RNNeteaseIm/NIMViewController.m

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,11 +369,12 @@ - (NSString *)dealWithData:(NSDictionary *)dict{
369369
}else if([strSendId isEqualToString:strMyId]){
370370
NSString *strOpenName = [self getUserName:strOpenId];
371371
strContent = [NSString stringWithFormat:@"%@领取了你的红包",strOpenName];
372-
}else{
373-
NSString *strSenderName = [self getUserName:strSendId];
374-
NSString *strOpenName = [self getUserName:strOpenId];
375-
strContent = [NSString stringWithFormat:@"%@领取了%@的红包",strOpenName,strSenderName];
376372
}
373+
// else{
374+
// NSString *strSenderName = [self getUserName:strSendId];
375+
// NSString *strOpenName = [self getUserName:strOpenId];
376+
// strContent = [NSString stringWithFormat:@"%@领取了%@的红包",strOpenName,strSenderName];
377+
// }
377378
return strContent;
378379
}
379380

0 commit comments

Comments
 (0)