mirror of
https://github.com/little-snow-fox/react-native-wechat-lib.git
synced 2025-12-06 15:26:49 +08:00
格式化
This commit is contained in:
parent
81915e19e0
commit
d6ef691f95
@ -257,7 +257,7 @@ RCT_EXPORT_METHOD(shareFile
|
|||||||
|
|
||||||
NSData *fileData;
|
NSData *fileData;
|
||||||
if ([url hasPrefix:@"http"]) {
|
if ([url hasPrefix:@"http"]) {
|
||||||
fileData = [NSData dataWithContentsOfURL:[NSURL URLWithString: url]];
|
fileData = [NSData dataWithContentsOfURL:[NSURL URLWithString:url]];
|
||||||
} else {
|
} else {
|
||||||
fileData = [NSData dataWithContentsOfFile:url];
|
fileData = [NSData dataWithContentsOfFile:url];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user