Kaynağa Gözat

1.尝试修复UI卡死问题

huangxiaodong 3 ay önce
ebeveyn
işleme
efa1325879

+ 1 - 1
创维盒子/code/netWork/addLog/addLogObject.m

@@ -115,9 +115,9 @@ static addLogObject *addlog_ShareInstance = nil;
         if(model.code == 200){
             NSString * fileKey = model.data.fileKey;
             if(fileKey && fileKey.length >0){
-                success(fileKey);
                 [weakSelf markAddLogTimeFun];
                 //[self uploadKeyToServerFunBy:fileKey];
+                success(fileKey);
             }
             else{
                 success(@"");

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

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

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

@@ -1165,7 +1165,7 @@
         case RTCIceConnectionStateFailed:
         case RTCIceConnectionStateDisconnected:
         case RTCIceConnectionStateClosed:{
-            if(!_didReportWebRtcFailType){//还没上报过通道链接情况
+            if(!_didReportWebRtcFailType && state != RTCIceConnectionStateDisconnected){//还没上报过通道链接情况
                 _didReportWebRtcFailType  = YES;
                
                 [[addLogObject shareInstance] gotoAddLogFunBySuccess:^(NSString * _Nonnull key) {