Procházet zdrojové kódy

需求:客户端删除自动上报日志逻辑,仅保留用户手动上报日志逻辑。

huangxiaodong před 2 týdny
rodič
revize
124a3947b6

+ 12 - 12
创维盒子/code/webRtc/webRtcManager/webRtcManager.m

@@ -75,12 +75,12 @@
             tryRelinkNum ++;
             if(tryRelinkNum == 2){
                 _didReportWebRtcFailType = YES;
-                KWeakSelf
-                globalBlock(^{
-                    [[addLogObject shareInstance] gotoAddLogFunBySuccess:^(NSString * _Nonnull key) {
-                        [weakSelf reportWebRtcRePoportTypeIsChannel:YES withStats:nil withSessionId:self->_webRtcChannelSessionId withLogKey:key];
-                    }];
-                });
+//                KWeakSelf
+//                globalBlock(^{
+//                    [[addLogObject shareInstance] gotoAddLogFunBySuccess:^(NSString * _Nonnull key) {
+//                        [weakSelf reportWebRtcRePoportTypeIsChannel:YES withStats:nil withSessionId:self->_webRtcChannelSessionId withLogKey:key];
+//                    }];
+//                });
                 //检测盒子心跳
                 [self checkBoxHeartbeatFun];
             }
@@ -1000,12 +1000,12 @@
         case RTCIceConnectionStateClosed:{
             if(!_didReportWebRtcFailType && state == RTCIceConnectionStateFailed){//还没上报过通道链接情况
                 _didReportWebRtcFailType = YES;
-                KWeakSelf
-                globalBlock(^{
-                    [[addLogObject shareInstance] gotoAddLogFunBySuccess:^(NSString * _Nonnull key) {
-                        [weakSelf reportWebRtcRePoportTypeIsChannel:YES withStats:nil withSessionId:self->_webRtcChannelSessionId withLogKey:key];
-                    }];
-                });
+//                KWeakSelf
+//                globalBlock(^{
+//                    [[addLogObject shareInstance] gotoAddLogFunBySuccess:^(NSString * _Nonnull key) {
+//                        [weakSelf reportWebRtcRePoportTypeIsChannel:YES withStats:nil withSessionId:self->_webRtcChannelSessionId withLogKey:key];
+//                    }];
+//                });
                 
             }
             //链接关闭

+ 10 - 10
创维盒子/code/webRtc/webRtcPlayerViewController.m

@@ -431,11 +431,11 @@
                     tryRelinkNum = 0;
                     _didReportWebRtcFailType = YES;
                     
-                    globalBlock(^{
-                        [[addLogObject shareInstance] gotoAddLogFunBySuccess:^(NSString * _Nonnull key) {
-                            [[webRtcManager shareManager] reportWebRtcRePoportTypeIsChannel:NO withStats:nil withSessionId:self->_webRtcPlayerSessionId withLogKey:key];
-                        }];
-                    });
+//                    globalBlock(^{
+//                        [[addLogObject shareInstance] gotoAddLogFunBySuccess:^(NSString * _Nonnull key) {
+//                            [[webRtcManager shareManager] reportWebRtcRePoportTypeIsChannel:NO withStats:nil withSessionId:self->_webRtcPlayerSessionId withLogKey:key];
+//                        }];
+//                    });
                     
                     
                     //[self showLinkPhoneErrorFun];
@@ -1172,11 +1172,11 @@
         case RTCIceConnectionStateClosed:{
             if(!_didReportWebRtcFailType && state == RTCIceConnectionStateFailed){//还没上报过通道链接情况
                 _didReportWebRtcFailType  = YES;
-                globalBlock(^{
-                    [[addLogObject shareInstance] gotoAddLogFunBySuccess:^(NSString * _Nonnull key) {
-                        [[webRtcManager shareManager] reportWebRtcRePoportTypeIsChannel:NO withStats:nil withSessionId:self->_webRtcPlayerSessionId withLogKey:key];
-                    }];
-                });
+//                globalBlock(^{
+//                    [[addLogObject shareInstance] gotoAddLogFunBySuccess:^(NSString * _Nonnull key) {
+//                        [[webRtcManager shareManager] reportWebRtcRePoportTypeIsChannel:NO withStats:nil withSessionId:self->_webRtcPlayerSessionId withLogKey:key];
+//                    }];
+//                });
             }
             //链接关闭
             [self relinkWebRtcFun];