Commit 7c88c03d authored by 林生雨's avatar 林生雨

commit

parent 26966b4d
......@@ -317,7 +317,6 @@
</component>
<component name="ToolWindowManager">
<frame x="9" y="23" width="1440" height="811" extended-state="6" />
<editor active="true" />
<layout>
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.19742489" />
<window_info id="Captures" order="1" side_tool="true" />
......
......@@ -361,7 +361,8 @@ NSString *cacheDirectory;
NSString *tempPath = NSTemporaryDirectory();
NSFileManager *fileManager = [NSFileManager defaultManager];
if([[self.scanMap allKeys] containsObject:path]){
NSString* tempTake= [tempPath stringByAppendingPathComponent:[path lastPathComponent]];
NSString* name=[path lastPathComponent];
NSString* tempTake= [tempPath stringByAppendingPathComponent:[NSString stringWithFormat:@"%@%@",name,@"_preview"]];
PHAsset * assets=self.scanMap[path];
if([fileManager fileExistsAtPath:tempTake]){
NSMutableDictionary *dict=[[NSMutableDictionary alloc] init];
......@@ -396,7 +397,7 @@ NSString *cacheDirectory;
[dict setObject:path forKey:@"path"];
[dict setObject:tempTake forKey:@"realImagePath"];
dispatch_async(dispatch_get_main_queue(), ^{
NSLog(@"压缩预览图片耗时:%f ms",(CFAbsoluteTimeGetCurrent()-start)*1000);
NSLog(@"压缩预览图片耗时:%f ms Temp路径%@",(CFAbsoluteTimeGetCurrent()-start)*1000,tempTake);
[[ResultManager sharedSingleton] resultSuccess:[NSNumber numberWithLong:resultTemp] :dict];
});
}];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment