Browse Source

1.剔除IM埋点。
2.剔除播放器打断的错误上报
3.剔除浏览器取消请求的错误上报

Steven 6 months ago
parent
commit
ff6a3689c6

+ 4 - 4
KulexiuForStudent/KulexiuForStudent.xcodeproj/project.pbxproj

@@ -306,6 +306,7 @@
 		BC12639F28FF8E7400509E90 /* HomeRecommendMusicView.xib in Resources */ = {isa = PBXBuildFile; fileRef = BC12639E28FF8E7400509E90 /* HomeRecommendMusicView.xib */; };
 		BC1D02422C0490AB001F6A94 /* KSMuteTipsView.xib in Resources */ = {isa = PBXBuildFile; fileRef = BC1D023F2C0490AB001F6A94 /* KSMuteTipsView.xib */; };
 		BC1D02432C0490AB001F6A94 /* KSMuteTipsView.m in Sources */ = {isa = PBXBuildFile; fileRef = BC1D02402C0490AB001F6A94 /* KSMuteTipsView.m */; };
+		BC1E28422C76DE640063E0A1 /* CloudAccompanyLibrary.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BC1E28412C76DE640063E0A1 /* CloudAccompanyLibrary.framework */; };
 		BC27A06E280FF56C00F91E27 /* AccompanyEvaluateCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = BC27A06A280FF56B00F91E27 /* AccompanyEvaluateCell.xib */; };
 		BC27A06F280FF56C00F91E27 /* AccompanyStudentEvaCell.m in Sources */ = {isa = PBXBuildFile; fileRef = BC27A06B280FF56C00F91E27 /* AccompanyStudentEvaCell.m */; };
 		BC27A070280FF56C00F91E27 /* AccompanyStudentEvaCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = BC27A06C280FF56C00F91E27 /* AccompanyStudentEvaCell.xib */; };
@@ -595,7 +596,6 @@
 		BC84183F2AC2D96600D8F90E /* PasswordCheckBodyView.m in Sources */ = {isa = PBXBuildFile; fileRef = BC84183E2AC2D96600D8F90E /* PasswordCheckBodyView.m */; };
 		BC8418412AC2D96C00D8F90E /* PasswordCheckBodyView.xib in Resources */ = {isa = PBXBuildFile; fileRef = BC8418402AC2D96C00D8F90E /* PasswordCheckBodyView.xib */; };
 		BC85A9DF2C6B5268003C1ABE /* KSToolLibrary.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BC85A9DD2C6B5268003C1ABE /* KSToolLibrary.framework */; };
-		BC85A9E02C6B5268003C1ABE /* CloudAccompanyLibrary.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BC85A9DE2C6B5268003C1ABE /* CloudAccompanyLibrary.framework */; };
 		BC85A9E62C6B570E003C1ABE /* KSRealtimeAnalyzer.m in Sources */ = {isa = PBXBuildFile; fileRef = BC85A9E22C6B570E003C1ABE /* KSRealtimeAnalyzer.m */; };
 		BC85A9E72C6B570E003C1ABE /* KSSpectrumView.m in Sources */ = {isa = PBXBuildFile; fileRef = BC85A9E42C6B570E003C1ABE /* KSSpectrumView.m */; };
 		BC85A9EA2C6B5959003C1ABE /* KSTargetWebSocketManager.m in Sources */ = {isa = PBXBuildFile; fileRef = BC85A9E92C6B5959003C1ABE /* KSTargetWebSocketManager.m */; };
@@ -1507,6 +1507,7 @@
 		BC1D023F2C0490AB001F6A94 /* KSMuteTipsView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = KSMuteTipsView.xib; sourceTree = "<group>"; };
 		BC1D02402C0490AB001F6A94 /* KSMuteTipsView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KSMuteTipsView.m; sourceTree = "<group>"; };
 		BC1D02412C0490AB001F6A94 /* KSMuteTipsView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KSMuteTipsView.h; sourceTree = "<group>"; };
+		BC1E28412C76DE640063E0A1 /* CloudAccompanyLibrary.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = CloudAccompanyLibrary.framework; sourceTree = "<group>"; };
 		BC255E822B29425F00A1FC27 /* SwiftImportHeader.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SwiftImportHeader.h; sourceTree = "<group>"; };
 		BC255E832B29425F00A1FC27 /* WebViewBaseConfig.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = WebViewBaseConfig.h; sourceTree = "<group>"; };
 		BC27A068280FF56B00F91E27 /* AccompanyEvaluateCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AccompanyEvaluateCell.h; sourceTree = "<group>"; };
@@ -1940,7 +1941,6 @@
 		BC84183E2AC2D96600D8F90E /* PasswordCheckBodyView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PasswordCheckBodyView.m; sourceTree = "<group>"; };
 		BC8418402AC2D96C00D8F90E /* PasswordCheckBodyView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = PasswordCheckBodyView.xib; sourceTree = "<group>"; };
 		BC85A9DD2C6B5268003C1ABE /* KSToolLibrary.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = KSToolLibrary.framework; sourceTree = "<group>"; };
-		BC85A9DE2C6B5268003C1ABE /* CloudAccompanyLibrary.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = CloudAccompanyLibrary.framework; sourceTree = "<group>"; };
 		BC85A9E12C6B570E003C1ABE /* KSRealtimeAnalyzer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KSRealtimeAnalyzer.h; sourceTree = "<group>"; };
 		BC85A9E22C6B570E003C1ABE /* KSRealtimeAnalyzer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = KSRealtimeAnalyzer.m; sourceTree = "<group>"; };
 		BC85A9E32C6B570E003C1ABE /* KSSpectrumView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = KSSpectrumView.h; sourceTree = "<group>"; };
@@ -2485,7 +2485,6 @@
 			files = (
 				BCA1136828A3A5CF007FAFB9 /* Accelerate.framework in Frameworks */,
 				BCFEE1932AD15C0E000E888F /* SoundpipeAudioKit in Frameworks */,
-				BC85A9E02C6B5268003C1ABE /* CloudAccompanyLibrary.framework in Frameworks */,
 				BCFEE18D2AD15BD4000E888F /* AudioKitEX in Frameworks */,
 				BC85A9DF2C6B5268003C1ABE /* KSToolLibrary.framework in Frameworks */,
 				BC8B6E152856E20800866917 /* WebKit.framework in Frameworks */,
@@ -2510,6 +2509,7 @@
 				BC71D0F62881A2420010F14B /* UMRemoteConfig.framework in Frameworks */,
 				BC8A45C5283DDE6D00094BBB /* AudioToolbox.framework in Frameworks */,
 				BC8A45C3283DDE5C00094BBB /* CoreMIDI.framework in Frameworks */,
+				BC1E28422C76DE640063E0A1 /* CloudAccompanyLibrary.framework in Frameworks */,
 				BC71D0FB2881A2420010F14B /* UShareUI.framework in Frameworks */,
 				BC71D0FD2881A2420010F14B /* libSocialWeChat.a in Frameworks */,
 				7ED0E7B1704A93EF8D10E5E6 /* libPods-KulexiuForStudent.a in Frameworks */,
@@ -4585,7 +4585,7 @@
 				BC00A6602BB58FDC00231B74 /* WMPlayer.bundle */,
 				BC3A55682BAA7B19002E1616 /* KSTunerLibrary.framework */,
 				BC85A9DD2C6B5268003C1ABE /* KSToolLibrary.framework */,
-				BC85A9DE2C6B5268003C1ABE /* CloudAccompanyLibrary.framework */,
+				BC1E28412C76DE640063E0A1 /* CloudAccompanyLibrary.framework */,
 				BC3BF62F2B9EAFC800831494 /* client.p12 */,
 			);
 			path = ToolKit;

+ 0 - 16
KulexiuForStudent/KulexiuForStudent/Common/Base/LoginManger/TXIMLinsenter.m

@@ -93,22 +93,6 @@
     NSLog(@"----- tx IM SDK 连接成功");
     self.isIMConnected = YES;
     [[NSNotificationCenter defaultCenter] postNotificationName:@"TXIMConnected" object:nil];
-#pragma mark ----- IM连接成功埋点
-    NSDictionary *parm = @{
-        @"userId" :UserDefault(UIDKey),
-        @"Location" : @"IM Connected",
-        @"version" : [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"],
-    };
-    NSString *content = [parm mj_JSONString];
-    NSMutableDictionary *uploadParm = [KSLogManager generateLogMessageWithContent:content type:@"RECORD"];
-    NSMutableArray *uploadArray = [NSMutableArray arrayWithObject:uploadParm];
-    [KSNetworkingManager sysExceptionLogUpdate:KS_POST token:self.access_token logArray:uploadArray success:^(NSDictionary * _Nonnull dic) {
-        if ([dic ks_integerValueForKey:@"code"] == 200) {
-            
-        }
-    } faliure:^(NSError * _Nonnull error) {
-        
-    }];
 }
 
 - (void)onConnectFailed:(int)code err:(NSString *)err {

+ 20 - 18
KulexiuForStudent/KulexiuForStudent/Common/Base/WebView/KSBaseWKWebViewController.m

@@ -1189,25 +1189,27 @@ typedef NS_ENUM(NSInteger, CHOOSETYPE) {
     NSLog(@"----数据加载发生错误时调用");
     // 错误上报
     if (error) {
-        NSLog(@"-- error desc - %@", error.description);
-        NSMutableDictionary *parm = [NSMutableDictionary dictionary];
-        [parm setValue:UserDefault(UIDKey) forKey:@"userId"];
-        [parm setValue:@"KSBaseWKWebViewController" forKey:@"Location"];
-        [parm setValue:webView.URL.absoluteString forKey:@"url"];
-        [parm setValue:@(error.code) forKey:@"errorCode"];
-        [parm setValue:error.description forKey:@"errorDesc"];
-        [parm setValue:[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"] forKey:@"version"];
-        
-        NSString *content = [parm mj_JSONString];
-        NSMutableDictionary *uploadParm = [KSLogManager generateLogMessageWithContent:content type:@"ERROR"];
-        NSMutableArray *uploadArray = [NSMutableArray arrayWithObject:uploadParm];
-        [KSNetworkingManager sysExceptionLogUpdate:KS_POST token:UserDefault(TokenKey) logArray:uploadArray success:^(NSDictionary * _Nonnull dic) {
-            if ([dic ks_integerValueForKey:@"code"] == 200) {
-                
-            }
-        } faliure:^(NSError * _Nonnull error) {
+        if (error.code == -999) {
+            NSLog(@"-- error desc - %@", error.description);
+            NSMutableDictionary *parm = [NSMutableDictionary dictionary];
+            [parm setValue:UserDefault(UIDKey) forKey:@"userId"];
+            [parm setValue:@"KSBaseWKWebViewController" forKey:@"Location"];
+            [parm setValue:webView.URL.absoluteString forKey:@"url"];
+            [parm setValue:@(error.code) forKey:@"errorCode"];
+            [parm setValue:error.description forKey:@"errorDesc"];
+            [parm setValue:[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"] forKey:@"version"];
             
-        }];
+            NSString *content = [parm mj_JSONString];
+            NSMutableDictionary *uploadParm = [KSLogManager generateLogMessageWithContent:content type:@"ERROR"];
+            NSMutableArray *uploadArray = [NSMutableArray arrayWithObject:uploadParm];
+            [KSNetworkingManager sysExceptionLogUpdate:KS_POST token:UserDefault(TokenKey) logArray:uploadArray success:^(NSDictionary * _Nonnull dic) {
+                if ([dic ks_integerValueForKey:@"code"] == 200) {
+                    
+                }
+            } faliure:^(NSError * _Nonnull error) {
+                
+            }];
+        }
     }
 }
 

+ 0 - 1
KulexiuForStudent/KulexiuForStudent/Module/Widget/Model/KSMetronomePlayer.m

@@ -73,7 +73,6 @@
             }
             [[AVAudioSession sharedInstance] setActive:YES error:nil];
             [self startEngineWithErrorReport:NO];
-
         }
     }
 }

BIN
KulexiuForStudent/KulexiuForStudent/ToolKit/CloudAccompanyLibrary.framework/CloudAccompanyLibrary


BIN
KulexiuForStudent/KulexiuForStudent/ToolKit/CloudAccompanyLibrary.framework/_CodeSignature/CodeDirectory


BIN
KulexiuForStudent/KulexiuForStudent/ToolKit/CloudAccompanyLibrary.framework/_CodeSignature/CodeRequirements-1


BIN
KulexiuForStudent/KulexiuForStudent/ToolKit/CloudAccompanyLibrary.framework/_CodeSignature/CodeSignature