File tree Expand file tree Collapse file tree 6 files changed +11
-6
lines changed Expand file tree Collapse file tree 6 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1
1
#Changelog
2
+ ## 8.0.2(2020-09-14)
3
+ ## 修正
4
+ - 修复日志上传失败问题
5
+ - 优化日志上传逻辑
6
+
2
7
## 8.0.1(2020-09-08)
3
8
## 优化
4
9
- 优化一些内存问题
Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |s |
2
2
s . name = 'Qiniu'
3
- s . version = '8.0.1 '
3
+ s . version = '8.0.2 '
4
4
s . summary = 'Qiniu Resource Storage SDK for iOS and Mac'
5
5
s . homepage = 'https://github.com/qiniu/objc-sdk'
6
6
s . social_media_url = 'http://weibo.com/qiniutek'
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ - (instancetype)init {
26
26
if (self) {
27
27
_reportEnable = YES ;
28
28
_interval = 10 ;
29
- _serverURL = @" https://uplog.qbox.me/log/4" ;
29
+ _serverURL = @" https://uplog.qbox.me/log/4?compressed=gzip " ;
30
30
_recordDirectory = [NSString stringWithFormat: @" %@ /report" , [QNUtils sdkCacheDirectory ]];
31
31
_maxRecordFileSize = 2 * 1024 * 1024 ;
32
32
_uploadThreshold = 4 * 1024 ;
Original file line number Diff line number Diff line change @@ -126,9 +126,9 @@ - (void)innerReport:(NSString *)jsonString token:(NSString *)token {
126
126
}
127
127
}
128
128
129
- // 判断是否满足上传条件:文件大于上报临界值 && (首次上传 || 距上次上传时间大于_config.interval)
129
+ // 判断是否满足上传条件:文件大于上报临界值 || (首次上传 || 距上次上传时间大于_config.interval)
130
130
NSTimeInterval currentTime = [[NSDate dateWithTimeIntervalSinceNow: 0 ] timeIntervalSince1970 ];
131
- if (file.size > _config.uploadThreshold && (_lastReportTime == 0 || currentTime - _lastReportTime > _config.interval * 60 )) {
131
+ if (file.size > _config.uploadThreshold || (_lastReportTime == 0 || currentTime - _lastReportTime > _config.interval * 60 )) {
132
132
133
133
NSMutableURLRequest *request = [[NSMutableURLRequest alloc ] initWithURL: [NSURL URLWithString: _config.serverURL]];
134
134
[request setValue: [NSString stringWithFormat: @" UpToken %@ " , token] forHTTPHeaderField: @" Authorization" ];
Original file line number Diff line number Diff line change 11
11
/* *
12
12
* sdk 版本
13
13
*/
14
- static NSString *const kQiniuVersion = @" 8.0.1 " ;
14
+ static NSString *const kQiniuVersion = @" 8.0.2 " ;
Original file line number Diff line number Diff line change 13
13
通过 CocoaPods
14
14
15
15
``` ruby
16
- pod " Qiniu" , " ~> 8.0.1 "
16
+ pod " Qiniu" , " ~> 8.0.2 "
17
17
```
18
18
19
19
## 运行环境
You can’t perform that action at this time.
0 commit comments