Jelajahi Sumber

[*] 修复 盲盒礼物房间顶部通知显示空礼物横幅

Steven 7 bulan lalu
induk
melakukan
6a660b67fc
1 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 3 2
      MiMoLive/MiMoLive/Classes/Live/MOShowLiveVC.m

+ 3 - 2
MiMoLive/MiMoLive/Classes/Live/MOShowLiveVC.m

@@ -3940,13 +3940,14 @@ static int pkAnchorRTCNum = 0;
 }
 
 - (void)handleBlindBoxRtm:(MORtmEntity *)entity {
-    NSLog(@"yjm--handleBlindBoxRtm");
     MORtmJosnEntity *jsonEntity = (MORtmJosnEntity *)entity.data;
     MORtmBlindboxDrawResult *drawResult = jsonEntity.blindboxDrawResult;
     
     if (drawResult.noticeType == 2 || drawResult.noticeType == 3) {//房间顶部通知
         
-        [self.liveView.expensiveView showMessage:entity];//礼物
+        if (drawResult.list.count > 0) {//礼物
+            [self.liveView.expensiveView showMessage:entity];
+        }
         
         if (drawResult.propNotices.count > 0) {//装扮
             NSString *propString = [self createBlindBoxDeawResultPropString:drawResult.propNotices];