解决了语音上传到问题,接下来要解决下载播放问题
This commit is contained in:
25
Pods/Qiniu/QiniuSDK/Utils/QNUrlUtils.m
generated
Normal file
25
Pods/Qiniu/QiniuSDK/Utils/QNUrlUtils.m
generated
Normal file
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// QNUrlUtils.m
|
||||
// QiniuSDK
|
||||
//
|
||||
// Created by yangsen on 2023/11/16.
|
||||
// Copyright © 2023 Qiniu. All rights reserved.
|
||||
//
|
||||
|
||||
#import "QNUrlUtils.h"
|
||||
|
||||
@implementation QNUrlUtils
|
||||
|
||||
+ (NSString *)setHostScheme:(NSString *)host useHttps:(BOOL)useHttps {
|
||||
if (host == nil || host.length == 0) {
|
||||
return nil;
|
||||
}
|
||||
|
||||
if ([host hasPrefix:@"http://"] || [host hasPrefix:@"https://"]) {
|
||||
return host;
|
||||
}
|
||||
|
||||
return [NSString stringWithFormat:@"%@%@", (useHttps ? @"https://" : @"http://"), host];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user