更新 Podfile 中 NIMSDK_LITE 版本至 '~> 10.9.40',并在多个文件中新增日志记录功能以优化连击消息处理,增强调试能力。同时,新增连击计数重置通知和相关方法,提升用户体验和代码可维护性。
This commit is contained in:
@@ -1132,6 +1132,8 @@ UIGestureRecognizerDelegate
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 处理 combo
|
||||
[[GiftComboManager sharedManager] receiveGiftInfoForDisplayComboFlags:receiveInfo
|
||||
container:self];
|
||||
@@ -1582,6 +1584,16 @@ UIGestureRecognizerDelegate
|
||||
}
|
||||
|
||||
AttachmentModel *attachment = (AttachmentModel *)obj.attachment;
|
||||
{
|
||||
// 自定义消息处理入口排查日志:first/second、payload size、线程
|
||||
NSData *payloadJSON = nil;
|
||||
@try { payloadJSON = [NSJSONSerialization dataWithJSONObject:attachment.data ?: @{} options:0 error:nil]; } @catch (__unused NSException *e) {}
|
||||
NSLog(@"[Combo effect][Anim] 🎞 handleNIMCustomMessage | first=%ld second=%ld | payload=%lub | main=%@ | ts=%.3f",
|
||||
(long)attachment.first, (long)attachment.second,
|
||||
(unsigned long)payloadJSON.length,
|
||||
[NSThread isMainThread] ? @"YES" : @"NO",
|
||||
[[NSDate date] timeIntervalSince1970]);
|
||||
}
|
||||
switch (attachment.first) {
|
||||
case CustomMessageType_User_Enter_Room:
|
||||
[self _handleEnterRoomMessage:message];
|
||||
@@ -1740,8 +1752,12 @@ UIGestureRecognizerDelegate
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
NSLog(@"[Combo effect] 📨 礼物消息解析完成 - giftId: %ld, combo: %ld, uid: %@", (long)receiveInfo.gift.giftId, (long)receiveInfo.comboCount, receiveInfo.uid);
|
||||
|
||||
|
||||
|
||||
receiveInfo.isLuckyBagGift = (attachment.second == Custom_Message_Sub_Gift_LuckySend ||
|
||||
attachment.second == Custom_Message_Sub_AllMicroLuckySend ||
|
||||
attachment.second == Custom_Message_Sub_AllBatchMicroLuckySend);
|
||||
@@ -3494,4 +3510,6 @@ UIGestureRecognizerDelegate
|
||||
self.savedTapPoint = CGPointZero;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@end
|
||||
|
Reference in New Issue
Block a user