Quellcode durchsuchen

1.修改iOS Apex Drivers离线。

Pen Li vor 7 Jahren
Ursprung
Commit
024c8141e5
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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;