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 11#Changelog
2+ ## 8.0.2(2020-09-14)
3+ ## 修正
4+ - 修复日志上传失败问题
5+ - 优化日志上传逻辑
6+
27## 8.0.1(2020-09-08)
38## 优化
49- 优化一些内存问题
Original file line number Diff line number Diff line change 11Pod ::Spec . new do |s |
22 s . name = 'Qiniu'
3- s . version = '8.0.1 '
3+ s . version = '8.0.2 '
44 s . summary = 'Qiniu Resource Storage SDK for iOS and Mac'
55 s . homepage = 'https://github.com/qiniu/objc-sdk'
66 s . social_media_url = 'http://weibo.com/qiniutek'
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ - (instancetype)init {
2626 if (self) {
2727 _reportEnable = YES ;
2828 _interval = 10 ;
29- _serverURL = @" https://uplog.qbox.me/log/4" ;
29+ _serverURL = @" https://uplog.qbox.me/log/4?compressed=gzip " ;
3030 _recordDirectory = [NSString stringWithFormat: @" %@ /report" , [QNUtils sdkCacheDirectory ]];
3131 _maxRecordFileSize = 2 * 1024 * 1024 ;
3232 _uploadThreshold = 4 * 1024 ;
Original file line number Diff line number Diff line change @@ -126,9 +126,9 @@ - (void)innerReport:(NSString *)jsonString token:(NSString *)token {
126126 }
127127 }
128128
129- // 判断是否满足上传条件:文件大于上报临界值 && (首次上传 || 距上次上传时间大于_config.interval)
129+ // 判断是否满足上传条件:文件大于上报临界值 || (首次上传 || 距上次上传时间大于_config.interval)
130130 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 )) {
132132
133133 NSMutableURLRequest *request = [[NSMutableURLRequest alloc ] initWithURL: [NSURL URLWithString: _config.serverURL]];
134134 [request setValue: [NSString stringWithFormat: @" UpToken %@ " , token] forHTTPHeaderField: @" Authorization" ];
Original file line number Diff line number Diff line change 1111/* *
1212 * sdk 版本
1313 */
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 1313通过 CocoaPods
1414
1515``` ruby
16- pod " Qiniu" , " ~> 8.0.1 "
16+ pod " Qiniu" , " ~> 8.0.2 "
1717```
1818
1919## 运行环境
You can’t perform that action at this time.
0 commit comments