解决了语音上传到问题,接下来要解决下载播放问题
This commit is contained in:
42
Pods/Qiniu/QiniuSDK/Collect/QNReportConfig.m
generated
Normal file
42
Pods/Qiniu/QiniuSDK/Collect/QNReportConfig.m
generated
Normal file
@@ -0,0 +1,42 @@
|
||||
//
|
||||
// QNReportConfig.m
|
||||
// QiniuSDK
|
||||
//
|
||||
// Created by 杨森 on 2020/7/14.
|
||||
// Copyright © 2020 Qiniu. All rights reserved.
|
||||
//
|
||||
|
||||
#import "QNReportConfig.h"
|
||||
#import "QNConfig.h"
|
||||
#import "QNUtils.h"
|
||||
|
||||
@implementation QNReportConfig
|
||||
|
||||
+ (instancetype)sharedInstance {
|
||||
|
||||
static QNReportConfig *sharedInstance = nil;
|
||||
static dispatch_once_t onceToken;
|
||||
dispatch_once(&onceToken, ^{
|
||||
sharedInstance = [[self alloc] init];
|
||||
});
|
||||
return sharedInstance;
|
||||
}
|
||||
|
||||
- (instancetype)init {
|
||||
self = [super init];
|
||||
if (self) {
|
||||
_reportEnable = YES;
|
||||
_interval = 0.5;
|
||||
_serverHost = kQNUpLogHost;
|
||||
_recordDirectory = [NSString stringWithFormat:@"%@/report", [QNUtils sdkCacheDirectory]];
|
||||
_maxRecordFileSize = 20 * 1024 * 1024;
|
||||
_uploadThreshold = 16 * 1024;
|
||||
_timeoutInterval = 10;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (NSString *)serverURL {
|
||||
return [NSString stringWithFormat:@"https://%@/log/4?compressed=gzip", _serverHost];
|
||||
}
|
||||
@end
|
||||
Reference in New Issue
Block a user