Explorar el Código

Common editor online enumeration type dynamic loading error, will always cover the first 20 -- common editor 在线枚举类型动态加载有错,会始终覆盖前20个(resolve: #14543)

Ray Zhang hace 4 años
padre
commit
f67139d613
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      common/customUI/commoneditor/EnumSelectOnlineViewController.m

+ 2 - 1
common/customUI/commoneditor/EnumSelectOnlineViewController.m

@@ -638,10 +638,11 @@
                 }
                 
                 int count = [json[@"count"] intValue];
+                int ccount = [self.cadedate[@"count"] intValue];
                 for (int i=0;i<count;i++)
                 {
                     NSMutableDictionary* item = [json[[NSString stringWithFormat:@"val_%d",i]] mutableCopy];
-                    self.cadedate[[NSString stringWithFormat:@"val_%d",i]]=item;
+                    self.cadedate[[NSString stringWithFormat:@"val_%d",ccount+i]]=item;
                 }
                 
                 self.cadedate[@"count"]= @([self.cadedate[@"count"] intValue]+count);