作者 周泳恩

设置默认值

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