Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
flutter_plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林生雨
flutter_plugin
Commits
7c88c03d
Commit
7c88c03d
authored
Nov 01, 2019
by
林生雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
26966b4d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
workspace.xml
.idea/workspace.xml
+0
-1
GengmeiFlutterPlugin.m
ios/Classes/GengmeiFlutterPlugin.m
+3
-2
No files found.
.idea/workspace.xml
View file @
7c88c03d
...
...
@@ -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"
/>
...
...
ios/Classes/GengmeiFlutterPlugin.m
View file @
7c88c03d
...
...
@@ -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
];
});
}];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment