|
|
@@ -504,12 +504,16 @@ void UncaughtExceptionHandler(NSException *exception) {
|
|
|
|
|
|
NSString *result = [NSString stringWithFormat:@"version: %@ \n crash_datetime: %@ \n",version,time];
|
|
|
|
|
|
- [iSalesNetwork err_log:errlog result:result module:@"crash" code:0];
|
|
|
+ NSDictionary *ret = [iSalesNetwork err_log:errlog result:result module:@"crash" code:0];
|
|
|
|
|
|
+ // 上传成功之后清除纪录
|
|
|
+ if ([[ret objectForKey:@"result"] integerValue] == 2) {
|
|
|
+
|
|
|
+ [iSalesDB execSql:[NSString stringWithFormat:@"delete from errlog where create_time = '%@';",time]];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
- //上传完成之后清表
|
|
|
- [iSalesDB execSql:@"delete from errlog"];
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|