diff --git a/QCloudCOSXML/Classes/Transfer/request/QCloudCOSXMLDownloadObjectRequest.m b/QCloudCOSXML/Classes/Transfer/request/QCloudCOSXMLDownloadObjectRequest.m index fb12bfd..c6f144b 100644 --- a/QCloudCOSXML/Classes/Transfer/request/QCloudCOSXMLDownloadObjectRequest.m +++ b/QCloudCOSXML/Classes/Transfer/request/QCloudCOSXMLDownloadObjectRequest.m @@ -151,7 +151,11 @@ - (void)startGetObject { NSData *jsonData = [[NSData alloc] initWithContentsOfFile:self.resumableTaskFile]; NSMutableDictionary *dic = [NSMutableDictionary dictionary]; if(jsonData){ - dic = [[NSJSONSerialization JSONObjectWithData:jsonData options:kNilOptions error:nil] mutableCopy]; + id jsonObject = [[NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingMutableContainers error:nil] mutableCopy]; + if (jsonObject) + { + dic = jsonObject; + } } if(error){