Переглянути джерело

1.信令通道消息重发机制优化

huangxiaodong 1 рік тому
батько
коміт
c867e3a73c

+ 4 - 4
创维盒子/双子星云手机/CloudPlayer/PlayerViewController+otherDelegate.mm

@@ -422,7 +422,7 @@
 {
     if(commandSendCheckArr && commandSendCheckArr.count >0){
         for (commandSendCheckModel *model in commandSendCheckArr) {
-            if(model.reSendNum < 5){
+            if(model.reSendNum < 3){
                 model.reSendNum ++;
                 if(model.commandStr){
                     [self send_data:model.commandStr];
@@ -430,9 +430,9 @@
                     HLog(@"\n\n\n任务重发 重发次数:%ld 指令:%@\n\n\n",model.reSendNum,model.commandStr);
                 }
                 
-                if([model.type isEqualToString:@"offline_notification"]){
-                    model.reSendNum = 1;//只要不收到
-                }
+//                if([model.type isEqualToString:@"offline_notification"]){
+//                    model.reSendNum = 1;//只要不收到
+//                }
             }
         }
     }