...
|
...
|
@@ -188,16 +188,17 @@ static NSString *kParamKeyType = @"type"; |
|
|
if (IsDictionaryClass(performanceDic)) {
|
|
|
[eventDic addEntriesFromDictionary:performanceDic];
|
|
|
}
|
|
|
if (IsDictionaryClass(eventDic)) {
|
|
|
[eventDic setObject:data forKey:YOHOAppReportKeyPARAM];
|
|
|
}
|
|
|
|
|
|
switch (type) {
|
|
|
case YHPT_NETWORK:
|
|
|
{
|
|
|
[self.eventDataSession getbaiduNetStatus:eventDic completionBlock:^(NSTimeInterval cts, NSInteger errCode) {
|
|
|
[eventDic setValue:[NSString stringWithFormat:@"%zd",errCode] forKey:YOHOAppReportKeyJsonKeyErrorTEC];
|
|
|
[eventDic setValue:[NSString stringWithFormat:@"%ld",(long)cts] forKey:YOHOAppReportKeyJsonKeyErrorCTS];
|
|
|
NSMutableDictionary *appendDict = [[NSMutableDictionary alloc] initWithDictionary:data];
|
|
|
|
|
|
[appendDict setValue:[NSString stringWithFormat:@"%zd",errCode] forKey:YOHOAppReportKeyJsonKeyErrorTEC];
|
|
|
[appendDict setValue:[NSString stringWithFormat:@"%ld",(long)cts] forKey:YOHOAppReportKeyJsonKeyErrorCTS];
|
|
|
[eventDic setValue:appendDict forKey:YOHOAppReportKeyPARAM];
|
|
|
|
|
|
[self pushData:eventDic dataType:YHEventReportDataTypeCustom];
|
|
|
}];
|
|
|
}
|
...
|
...
|
@@ -206,17 +207,23 @@ static NSString *kParamKeyType = @"type"; |
|
|
{
|
|
|
if ([data valueForKey:YOHOAppReportKeyJsonKeyErrorTEC]) {
|
|
|
[self.eventDataSession getbaiduNetStatus:eventDic completionBlock:^(NSTimeInterval cts, NSInteger errCode) {
|
|
|
[eventDic setValue:[NSString stringWithFormat:@"%zd",errCode] forKey:YOHOAppReportKeyJsonKeyErrorTEC];
|
|
|
[eventDic setValue:[NSString stringWithFormat:@"%ld",(long)cts] forKey:YOHOAppReportKeyJsonKeyErrorCTS];
|
|
|
NSMutableDictionary *appendDict = [[NSMutableDictionary alloc] initWithDictionary:data];
|
|
|
|
|
|
[appendDict setValue:[NSString stringWithFormat:@"%zd",errCode] forKey:YOHOAppReportKeyJsonKeyErrorTEC];
|
|
|
[appendDict setValue:[NSString stringWithFormat:@"%ld",(long)cts] forKey:YOHOAppReportKeyJsonKeyErrorCTS];
|
|
|
[eventDic setValue:appendDict forKey:YOHOAppReportKeyPARAM];
|
|
|
|
|
|
[self pushData:eventDic dataType:YHEventReportDataTypeCustom];
|
|
|
}];
|
|
|
} else {
|
|
|
[eventDic setValue:data forKey:YOHOAppReportKeyPARAM];
|
|
|
[self pushData:eventDic dataType:YHEventReportDataTypeCustom];
|
|
|
}
|
|
|
}
|
|
|
break;
|
|
|
default:
|
|
|
{
|
|
|
[eventDic setValue:data forKey:YOHOAppReportKeyPARAM];
|
|
|
[self pushData:eventDic dataType:YHEventReportDataTypeCustom];
|
|
|
}
|
|
|
break;
|
...
|
...
|
|