@@ -83,11 +83,7 @@ - (void)reportItem:(QNReportItem *)item token:(NSString *)token{
8383@implementation QNResponseInfo (Report)
8484
8585- (NSNumber *)requestReportStatusCode {
86- if (self.statusCode > -10 && self.statusCode < 0 ) {
87- return @(self.statusCode );
88- } else {
89- return nil ;
90- }
86+ return @(self.statusCode );
9187}
9288
9389- (NSString *)requestReportErrorType {
@@ -172,7 +168,7 @@ - (NSString *)qualityResult{
172168NSString * const QNReportRequestKeyPort = @" port" ;
173169NSString * const QNReportRequestKeyTargetBucket = @" target_bucket" ;
174170NSString * const QNReportRequestKeyTargetKey = @" target_key" ;
175- NSString * const QNReportRequestKeyTotalElapsedTime = @" total_elaspsed_time " ;
171+ NSString * const QNReportRequestKeyTotalElapsedTime = @" total_elapsed_time " ;
176172NSString * const QNReportRequestKeyDnsElapsedTime = @" dns_elapsed_time" ;
177173NSString * const QNReportRequestKeyConnectElapsedTime = @" connect_elapsed_time" ;
178174NSString * const QNReportRequestKeyTLSConnectElapsedTime = @" tls_connect_elapsed_time" ;
@@ -205,7 +201,7 @@ - (NSString *)qualityResult{
205201NSString *const QNReportBlockKeyUpTime = @" up_time" ;
206202NSString * const QNReportBlockKeyTargetRegionId = @" target_region_id" ;
207203NSString * const QNReportBlockKeyCurrentRegionId = @" current_region_id" ;
208- NSString * const QNReportBlockKeyTotalElapsedTime = @" total_elaspsed_time " ;
204+ NSString * const QNReportBlockKeyTotalElapsedTime = @" total_elapsed_time " ;
209205NSString * const QNReportBlockKeyBytesSent = @" bytes_sent" ;
210206NSString * const QNReportBlockKeyRecoveredFrom = @" recovered_from" ;
211207NSString * const QNReportBlockKeyFileSize = @" file_size" ;
@@ -219,7 +215,7 @@ - (NSString *)qualityResult{
219215NSString * const QNReportQualityKeyLogType = @" log_type" ;
220216NSString *const QNReportQualityKeyUpTime = @" up_time" ;
221217NSString * const QNReportQualityKeyResult = @" result" ;
222- NSString * const QNReportQualityKeyTotalElapsedTime = @" total_elaspsed_time " ;
218+ NSString * const QNReportQualityKeyTotalElapsedTime = @" total_elapsed_time " ;
223219NSString * const QNReportQualityKeyRequestsCount = @" requests_count" ;
224220NSString * const QNReportQualityKeyRegionsCount = @" regions_count" ;
225221NSString * const QNReportQualityKeyBytesSent = @" bytes_sent" ;
0 commit comments