作者 周泳恩

设置默认值

... ... @@ -321,6 +321,9 @@ RCT_EXPORT_METHOD(pay:(NSDictionary *)data
completionBlock:^(NSError *error, UIImage *image) {
if ([aData[@"LimitLength"] integerValue]!=0) {
[image compressWithLengthLimit:[aData[@"LimitLength"]integerValue]*1024.f];
}else
{
[image compressWithLengthLimit:32*1024.f];
}
[self shareToWeixinWithData:aData thumbImage:image scene:aScene callBack:aCallBack];
}];
... ...