提交 b35e7276 authored 作者: mafanwei's avatar mafanwei

Update FluwxShareHandler.m

上级 1aa33b92
......@@ -87,19 +87,18 @@ NSObject <FlutterPluginRegistrar> *_registrar;
NSString *thumbnail = call.arguments[fluwxKeyThumbnail];
UIImage *thumbnailImage = nil;
if ([StringUtil isBlank:thumbnail]) {
thumbnail = imagePath;
UIImage *tmp = [UIImage imageWithData:imageData];
thumbnailImage = [ThumbnailHelper compressImage:tmp toByte:32 * 1024 isPNG:FALSE];
}
dispatch_queue_t globalQueue = dispatch_get_global_queue(0, 0);
dispatch_async(globalQueue, ^{
NSURL *imageURL = [NSURL URLWithString:imagePath];
UIImage *thumbnailImage = [self getThumbnail:thumbnail size:32 * 1024];
if(thumbnailImage == nil)
*thumbnailImage = [self getThumbnail:thumbnail size:32 * 1024];
dispatch_async(dispatch_get_main_queue(), ^{
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论