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

先在debug中测试

parent 607955ba
......@@ -448,6 +448,9 @@ static NSString *sdkVersion = @"110";
NSMutableArray *dataArray = [GMCache fetchObjectAtDocumentPathWithkey:PhobosCacheKey];
if (dataArray) {
#ifdef DEBUG
[dataArray addObject:data];
#else
if (data[@"type"] && [data[@"type"] isEqualToString:@"page_view"]) {
NSDictionary *pageParams = data[@"params"];
NSDate *pageInTime = [NSDate dateWithTimeIntervalSince1970:[pageParams[@"in"] longLongValue]];
......@@ -464,7 +467,7 @@ static NSString *sdkVersion = @"110";
stop = YES;
phobosLog(@"%s____数据校验失败", __func__);
#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];
#endif
}
......@@ -478,6 +481,8 @@ static NSString *sdkVersion = @"110";
} else {
[dataArray addObject:data];
}
#endif
} else {
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