浏览代码

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

huangxiaodong 1 年之前
父节点
当前提交
c867e3a73c
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      创维盒子/双子星云手机/CloudPlayer/PlayerViewController+otherDelegate.mm

+ 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;//只要不收到
+//                }
             }
         }
     }