Explorar o código

1.修改iOS Apex Drivers离线。

Pen Li %!s(int64=7) %!d(string=hai) anos
pai
achega
024c8141e5
Modificáronse 1 ficheiros con 1 adicións e 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;