|
|
@@ -1641,10 +1641,21 @@ void UncaughtExceptionHandler(NSException *exception) {
|
|
|
bool response = false;
|
|
|
for (int i = 0;i<count;i++)
|
|
|
{
|
|
|
- NSDictionary* itemjson = [self.download_task objectForKey:[NSString stringWithFormat:@"item_%d",i]];
|
|
|
+ NSMutableDictionary* itemjson = [[self.download_task objectForKey:[NSString stringWithFormat:@"item_%d",i]] mutableCopy];
|
|
|
NSString* url = [itemjson valueForKey:@"url"];
|
|
|
NSString* type = [itemjson valueForKey:@"type"];
|
|
|
|
|
|
+ {
|
|
|
+ #ifdef DEBUG
|
|
|
+ //调试模式下跳过下载图片
|
|
|
+ if([type isEqualToString:@"img"])
|
|
|
+ {
|
|
|
+ itemjson[@"status"]=@"finish";
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ #endif
|
|
|
+ }
|
|
|
+
|
|
|
NSString* status = itemjson[@"status"];
|
|
|
//bool finish = [[itemjson valueForKey:@"finish"] boolValue];
|
|
|
if(! [status isEqualToString:@"finish"])
|