Authored by 孙凯

消除警告 review by hongmo

@@ -152,7 +152,7 @@ @@ -152,7 +152,7 @@
152 NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*)res; 152 NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*)res;
153 NSDictionary *httpResponseHeaderFields = [httpResponse allHeaderFields]; 153 NSDictionary *httpResponseHeaderFields = [httpResponse allHeaderFields];
154 NSString *contentLength = [NSString stringWithFormat:@"%lld",[[httpResponseHeaderFields objectForKey:@"Content-Length"] longLongValue]]; 154 NSString *contentLength = [NSString stringWithFormat:@"%lld",[[httpResponseHeaderFields objectForKey:@"Content-Length"] longLongValue]];
155 - NSString *statusCode = [NSString stringWithFormat:@"%lld",httpResponse.statusCode]; 155 + NSString *statusCode = [NSString stringWithFormat:@"%ld",(long)httpResponse.statusCode];
156 156
157 [[YH_EventCollector sharedInstance] timeEventEndWithRequestUrl:[request.URL absoluteString] HTTPMethod:request.HTTPMethod statusCode:statusCode contentLength:contentLength]; 157 [[YH_EventCollector sharedInstance] timeEventEndWithRequestUrl:[request.URL absoluteString] HTTPMethod:request.HTTPMethod statusCode:statusCode contentLength:contentLength];
158 } 158 }
@@ -179,7 +179,7 @@ @@ -179,7 +179,7 @@
179 NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*)response; 179 NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*)response;
180 NSDictionary *httpResponseHeaderFields = [httpResponse allHeaderFields]; 180 NSDictionary *httpResponseHeaderFields = [httpResponse allHeaderFields];
181 NSString *contentLength = [NSString stringWithFormat:@"%lld",[[httpResponseHeaderFields objectForKey:@"Content-Length"] longLongValue]]; 181 NSString *contentLength = [NSString stringWithFormat:@"%lld",[[httpResponseHeaderFields objectForKey:@"Content-Length"] longLongValue]];
182 - NSString *statusCode = [NSString stringWithFormat:@"%lld",httpResponse.statusCode]; 182 + NSString *statusCode = [NSString stringWithFormat:@"%ld",(long)httpResponse.statusCode];
183 183
184 [[YH_EventCollector sharedInstance] timeEventEndWithRequestUrl:[request.URL absoluteString] HTTPMethod:request.HTTPMethod statusCode:statusCode contentLength:contentLength]; 184 [[YH_EventCollector sharedInstance] timeEventEndWithRequestUrl:[request.URL absoluteString] HTTPMethod:request.HTTPMethod statusCode:statusCode contentLength:contentLength];
185 185
@@ -211,7 +211,7 @@ @@ -211,7 +211,7 @@
211 NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*)connection.my_response; 211 NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*)connection.my_response;
212 NSDictionary *httpResponseHeaderFields = [httpResponse allHeaderFields]; 212 NSDictionary *httpResponseHeaderFields = [httpResponse allHeaderFields];
213 NSString *contentLength = [NSString stringWithFormat:@"%lld",[[httpResponseHeaderFields objectForKey:@"Content-Length"] longLongValue]]; 213 NSString *contentLength = [NSString stringWithFormat:@"%lld",[[httpResponseHeaderFields objectForKey:@"Content-Length"] longLongValue]];
214 - NSString *statusCode = [NSString stringWithFormat:@"%lld",httpResponse.statusCode]; 214 + NSString *statusCode = [NSString stringWithFormat:@"%ld",(long)httpResponse.statusCode];
215 215
216 [[YH_EventCollector sharedInstance] timeEventEndWithRequestUrl:[connection.currentRequest.URL absoluteString] HTTPMethod:connection.currentRequest.HTTPMethod statusCode:statusCode contentLength:contentLength]; 216 [[YH_EventCollector sharedInstance] timeEventEndWithRequestUrl:[connection.currentRequest.URL absoluteString] HTTPMethod:connection.currentRequest.HTTPMethod statusCode:statusCode contentLength:contentLength];
217 } 217 }
@@ -69,7 +69,7 @@ @@ -69,7 +69,7 @@
69 NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*)response; 69 NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*)response;
70 NSDictionary *httpResponseHeaderFields = [httpResponse allHeaderFields]; 70 NSDictionary *httpResponseHeaderFields = [httpResponse allHeaderFields];
71 NSString *contentLength = [NSString stringWithFormat:@"%lld",[[httpResponseHeaderFields objectForKey:@"Content-Length"] longLongValue]]; 71 NSString *contentLength = [NSString stringWithFormat:@"%lld",[[httpResponseHeaderFields objectForKey:@"Content-Length"] longLongValue]];
72 - NSString *statusCode = [NSString stringWithFormat:@"%lld",httpResponse.statusCode]; 72 + NSString *statusCode = [NSString stringWithFormat:@"%ld",(long)httpResponse.statusCode];
73 73
74 [[YH_EventCollector sharedInstance] timeEventEndWithRequestUrl:[request.URL absoluteString] HTTPMethod:request.HTTPMethod statusCode:statusCode contentLength:contentLength]; 74 [[YH_EventCollector sharedInstance] timeEventEndWithRequestUrl:[request.URL absoluteString] HTTPMethod:request.HTTPMethod statusCode:statusCode contentLength:contentLength];
75 } 75 }
@@ -92,7 +92,7 @@ @@ -92,7 +92,7 @@
92 NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*)response; 92 NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse*)response;
93 NSDictionary *httpResponseHeaderFields = [httpResponse allHeaderFields]; 93 NSDictionary *httpResponseHeaderFields = [httpResponse allHeaderFields];
94 NSString *contentLength = [NSString stringWithFormat:@"%lld",[[httpResponseHeaderFields objectForKey:@"Content-Length"] longLongValue]]; 94 NSString *contentLength = [NSString stringWithFormat:@"%lld",[[httpResponseHeaderFields objectForKey:@"Content-Length"] longLongValue]];
95 - NSString *statusCode = [NSString stringWithFormat:@"%lld",httpResponse.statusCode]; 95 + NSString *statusCode = [NSString stringWithFormat:@"%ld",(long)httpResponse.statusCode];
96 96
97 [[YH_EventCollector sharedInstance] timeEventEndWithRequestUrl:[request.URL absoluteString] HTTPMethod:request.HTTPMethod statusCode:statusCode contentLength:contentLength]; 97 [[YH_EventCollector sharedInstance] timeEventEndWithRequestUrl:[request.URL absoluteString] HTTPMethod:request.HTTPMethod statusCode:statusCode contentLength:contentLength];
98 } 98 }
@@ -395,7 +395,6 @@ @@ -395,7 +395,6 @@
395 395
396 NSDictionary *param = [YH_EventDataFactory factoryTimeEventDataWithUIGestureRecognizer:gestureRecognizer url:[YH_EventCollector viewPathOfPurposeView:gestureRecognizer.view] ElapsedTime:elapsedTime]; 396 NSDictionary *param = [YH_EventDataFactory factoryTimeEventDataWithUIGestureRecognizer:gestureRecognizer url:[YH_EventCollector viewPathOfPurposeView:gestureRecognizer.view] ElapsedTime:elapsedTime];
397 397
398 - NSLog(@"%@",param);  
399 if (param) { 398 if (param) {
400 [[YH_EventCacheManager sharedInstance] pushPerformanceData:param pointName:YHPN_GESTURERECOGNIZER]; 399 [[YH_EventCacheManager sharedInstance] pushPerformanceData:param pointName:YHPN_GESTURERECOGNIZER];
401 } 400 }
@@ -583,7 +582,6 @@ @@ -583,7 +582,6 @@
583 } 582 }
584 NSDictionary *param = [YH_EventDataFactory factoryTimeEventDataWithRequestUrl:requestUrl HTTPMethod:method statusCode:statusCode contentLength:length ElapsedTime:elapsedTime]; 583 NSDictionary *param = [YH_EventDataFactory factoryTimeEventDataWithRequestUrl:requestUrl HTTPMethod:method statusCode:statusCode contentLength:length ElapsedTime:elapsedTime];
585 584
586 - NSLog(@"%@",param);  
587 if (param) { 585 if (param) {
588 [[YH_EventCacheManager sharedInstance] pushPerformanceData:param pointName:YHPN_HTTP]; 586 [[YH_EventCacheManager sharedInstance] pushPerformanceData:param pointName:YHPN_HTTP];
589 } 587 }