From e20859d206fe462c5a433ff770eed4086b039791 Mon Sep 17 00:00:00 2001 From: arnonchen <745735906@qq.com> Date: Wed, 11 Dec 2024 10:56:45 +0800 Subject: [PATCH] fix(ios): change vfs load function in fontLoader --- .../ios/module/fontLoader/HippyFontLoaderModule.mm | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/framework/ios/module/fontLoader/HippyFontLoaderModule.mm b/framework/ios/module/fontLoader/HippyFontLoaderModule.mm index 1b96f59405f..0cead5585b0 100644 --- a/framework/ios/module/fontLoader/HippyFontLoaderModule.mm +++ b/framework/ios/module/fontLoader/HippyFontLoaderModule.mm @@ -231,13 +231,11 @@ - (void)saveFontfamily:(NSString *)fontFamily url:(NSString *)url filePath:(NSSt } __weak __typeof(self) weakSelf = self; - [self.bridge loadContentsAsynchronouslyFromUrl:urlString - method:@"Get" - params:nil - body:nil - queue:nil - progress:nil - completionHandler:^(NSData *data, NSDictionary *userInfo, NSURLResponse *response, NSError *error) { + [self.bridge loadContentsAsyncFromUrl:urlString + params:nil + queue:nil + progress:nil + completionHandler:^(NSData *data, NSDictionary *userInfo, NSURLResponse *response, NSError *error) { __strong __typeof(weakSelf) strongSelf = weakSelf; if (error) { if (reject) {