提交 f8af389b authored 作者: JarvanMo's avatar JarvanMo

fix BOOL bug

上级 b0415db1
......@@ -62,7 +62,9 @@ BOOL handleOpenURLByFluwx = YES;
}
- (void)registerApp:(FlutterMethodCall *)call result:(FlutterResult)result {
if (!call.arguments[@"iOS"]) {
NSNumber* doOnIOS =call.arguments[@"iOS"];
if (![doOnIOS boolValue]) {
result(@NO);
return;
}
......
......@@ -290,14 +290,14 @@ NSObject <FlutterPluginRegistrar> *_fluwxRegistrar;
}
NSString *suffix = thumbnail[@"suffix"];
BOOL compress = call.arguments[fluwxKeyCompressThumbnail];
if(compress){
NSNumber* compress = call.arguments[fluwxKeyCompressThumbnail];
if([compress boolValue]){
NSLog(@"compress yes");
}else{
NSLog(@"compress no");
}
NSData *thumbnailData = [self getNsDataFromWeChatFile:thumbnail];
UIImage *thumbnailImage = [self getThumbnailFromNSData:thumbnailData size:defaultThumbnailSize isPNG:[self isPNG:suffix] compress:compress];
UIImage *thumbnailImage = [self getThumbnailFromNSData:thumbnailData size:defaultThumbnailSize isPNG:[self isPNG:suffix] compress:[compress boolValue]];
return thumbnailImage;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论