...
|
...
|
@@ -265,26 +265,28 @@ static NSArray *kYHEventReportIgnoredViewControllerArray; |
|
|
}
|
|
|
}
|
|
|
|
|
|
- (void)reportWithPointType:(YHPointType)type pointName:(YHEventReportPointName)name parameters:(NSDictionary *)param{
|
|
|
- (void)reportWithPointType:(YHPointType)type pointName:(YHEventReportPointName)name parameters:(NSDictionary *)param
|
|
|
{
|
|
|
//如果是exception类型,先保存,待下次启动后,上传;其他事件,则直接上传.
|
|
|
if (!self.isAppReportEnable) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (type == YHPT_EXCEPTION) {
|
|
|
if (type == YHPT_EXCEPTION
|
|
|
&& (name == YHPN_CRASH
|
|
|
|| name == YHPN_RN_EXCEPTION)) {
|
|
|
//只有 crash 或者 RNCrash 才会先做保存操作, 下次启动再上报
|
|
|
if (!self.isAppCrashReportEnable) {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
NSMutableDictionary *postMDict = [NSMutableDictionary dictionary];
|
|
|
[postMDict setObject:[YH_EventDataFactory getPointType:type] forKey:YOHOAppReportKeyPT];
|
|
|
[postMDict setObject:[YH_EventDataFactory getPointName:name] forKey:YOHOAppReportKeyPN];
|
|
|
[postMDict setObject:param forKey:YOHOAppReportKeyPARAM];
|
|
|
|
|
|
if (![self.crashDataMgr saveData:postMDict]) {
|
|
|
YHLog(@"save error data to file failed.");
|
|
|
}
|
|
|
}else{
|
|
|
} else {
|
|
|
[[YH_EventCacheManager sharedInstance] pushCustomData:IsNilOrNull(param)?@{}:param pointType:type pointName:name];
|
|
|
}
|
|
|
}
|
...
|
...
|
|