Commit 4b0ade0f authored by 井庆林's avatar 井庆林

先在debug中测试

parent 607955ba
...@@ -448,6 +448,9 @@ static NSString *sdkVersion = @"110"; ...@@ -448,6 +448,9 @@ static NSString *sdkVersion = @"110";
NSMutableArray *dataArray = [GMCache fetchObjectAtDocumentPathWithkey:PhobosCacheKey]; NSMutableArray *dataArray = [GMCache fetchObjectAtDocumentPathWithkey:PhobosCacheKey];
if (dataArray) { if (dataArray) {
#ifdef DEBUG
[dataArray addObject:data];
#else
if (data[@"type"] && [data[@"type"] isEqualToString:@"page_view"]) { if (data[@"type"] && [data[@"type"] isEqualToString:@"page_view"]) {
NSDictionary *pageParams = data[@"params"]; NSDictionary *pageParams = data[@"params"];
NSDate *pageInTime = [NSDate dateWithTimeIntervalSince1970:[pageParams[@"in"] longLongValue]]; NSDate *pageInTime = [NSDate dateWithTimeIntervalSince1970:[pageParams[@"in"] longLongValue]];
...@@ -464,7 +467,7 @@ static NSString *sdkVersion = @"110"; ...@@ -464,7 +467,7 @@ static NSString *sdkVersion = @"110";
stop = YES; stop = YES;
phobosLog(@"%s____数据校验失败", __func__); phobosLog(@"%s____数据校验失败", __func__);
#ifndef APPSTORE #ifndef APPSTORE
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"PV埋点数据异常" message:nil delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil]; UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"PV埋点可能数据异常" message:nil delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil];
[alertView show]; [alertView show];
#endif #endif
} }
...@@ -478,6 +481,8 @@ static NSString *sdkVersion = @"110"; ...@@ -478,6 +481,8 @@ static NSString *sdkVersion = @"110";
} else { } else {
[dataArray addObject:data]; [dataArray addObject:data];
} }
#endif
} else { } else {
dataArray = [NSMutableArray arrayWithObject:data]; dataArray = [NSMutableArray arrayWithObject:data];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment