Explorar el Código

1.修改iOS Apex Drivers离线。

Pen Li hace 7 años
padre
commit
024c8141e5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Redant Drivers/Apex And Drivers/Offline/RAOfflineHandler.m

+ 1 - 1
Redant Drivers/Apex And Drivers/Offline/RAOfflineHandler.m

@@ -526,7 +526,7 @@ static dispatch_semaphore_t _lock;
                 [actions enumerateObjectsUsingBlock:^(NSDictionary * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
                     
                     int index = [[obj objectForKey:@"index"] intValue];
-                    maxActionIndex = index;
+                    maxActionIndex = MAX(maxActionIndex, index);
                 }];
                 if (actionIndex == maxActionIndex) {
                     isLast = YES;