Parcourir la source

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

Steven il y a 6 mois
Parent
commit
ce26bb75d4

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

@@ -383,6 +383,7 @@
 		BC161CE42AE0DD760071530A /* TenantGroupChooseNavView.xib in Resources */ = {isa = PBXBuildFile; fileRef = BC161CE32AE0DD760071530A /* TenantGroupChooseNavView.xib */; };
 		BC161CE72AE0FD590071530A /* TenantGroupSortView.m in Sources */ = {isa = PBXBuildFile; fileRef = BC161CE62AE0FD590071530A /* TenantGroupSortView.m */; };
 		BC161CE92AE0FD630071530A /* TenantGroupSortView.xib in Resources */ = {isa = PBXBuildFile; fileRef = BC161CE82AE0FD630071530A /* TenantGroupSortView.xib */; };
+		BC1E28442C76DEB70063E0A1 /* CloudAccompanyLibrary.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BC1E28432C76DEB60063E0A1 /* CloudAccompanyLibrary.framework */; };
 		BC221FA128C72B9500F99802 /* MyStyleVideoView.xib in Resources */ = {isa = PBXBuildFile; fileRef = BC221F9D28C72B9500F99802 /* MyStyleVideoView.xib */; };
 		BC221FA228C72B9500F99802 /* MyStyleVideoCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = BC221F9E28C72B9500F99802 /* MyStyleVideoCell.xib */; };
 		BC221FA328C72B9500F99802 /* MyStyleVideoView.m in Sources */ = {isa = PBXBuildFile; fileRef = BC221F9F28C72B9500F99802 /* MyStyleVideoView.m */; };
@@ -886,7 +887,6 @@
 		BCB909042851E25D00F5FF69 /* KSShareChooseViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = BCB909032851E25D00F5FF69 /* KSShareChooseViewController.m */; };
 		BCB909072851E32C00F5FF69 /* ShareChooseMainView.m in Sources */ = {isa = PBXBuildFile; fileRef = BCB909062851E32C00F5FF69 /* ShareChooseMainView.m */; };
 		BCB950A42C6AF08400C62508 /* KSToolLibrary.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BCB950A32C6AF08400C62508 /* KSToolLibrary.framework */; };
-		BCB950A62C6AF0A800C62508 /* CloudAccompanyLibrary.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BCB950A52C6AF0A800C62508 /* CloudAccompanyLibrary.framework */; };
 		BCB9FA1C286D537E005D766B /* KSScanViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = BCB9FA1B286D537E005D766B /* KSScanViewController.m */; };
 		BCB9FA1F286D539A005D766B /* ScanNavView.m in Sources */ = {isa = PBXBuildFile; fileRef = BCB9FA1E286D539A005D766B /* ScanNavView.m */; };
 		BCB9FA21286D53A1005D766B /* ScanNavView.xib in Resources */ = {isa = PBXBuildFile; fileRef = BCB9FA20286D53A1005D766B /* ScanNavView.xib */; };
@@ -1792,6 +1792,7 @@
 		BC161CE52AE0FD590071530A /* TenantGroupSortView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TenantGroupSortView.h; sourceTree = "<group>"; };
 		BC161CE62AE0FD590071530A /* TenantGroupSortView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TenantGroupSortView.m; sourceTree = "<group>"; };
 		BC161CE82AE0FD630071530A /* TenantGroupSortView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = TenantGroupSortView.xib; sourceTree = "<group>"; };
+		BC1E28432C76DEB60063E0A1 /* CloudAccompanyLibrary.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = CloudAccompanyLibrary.framework; sourceTree = "<group>"; };
 		BC221F9B28C72B9500F99802 /* MyStyleVideoView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MyStyleVideoView.h; sourceTree = "<group>"; };
 		BC221F9C28C72B9500F99802 /* MyStyleVideoCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MyStyleVideoCell.h; sourceTree = "<group>"; };
 		BC221F9D28C72B9500F99802 /* MyStyleVideoView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = MyStyleVideoView.xib; sourceTree = "<group>"; };
@@ -2585,7 +2586,6 @@
 		BCB909052851E32C00F5FF69 /* ShareChooseMainView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ShareChooseMainView.h; sourceTree = "<group>"; };
 		BCB909062851E32C00F5FF69 /* ShareChooseMainView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ShareChooseMainView.m; sourceTree = "<group>"; };
 		BCB950A32C6AF08400C62508 /* KSToolLibrary.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = KSToolLibrary.framework; sourceTree = "<group>"; };
-		BCB950A52C6AF0A800C62508 /* CloudAccompanyLibrary.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = CloudAccompanyLibrary.framework; sourceTree = "<group>"; };
 		BCB9FA1A286D537E005D766B /* KSScanViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = KSScanViewController.h; sourceTree = "<group>"; };
 		BCB9FA1B286D537E005D766B /* KSScanViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = KSScanViewController.m; sourceTree = "<group>"; };
 		BCB9FA1D286D539A005D766B /* ScanNavView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ScanNavView.h; sourceTree = "<group>"; };
@@ -2957,7 +2957,7 @@
 				BCB950A42C6AF08400C62508 /* KSToolLibrary.framework in Frameworks */,
 				2779333F27E314640010E277 /* CoreVideo.framework in Frameworks */,
 				BC8B6E572856ED0600866917 /* UMDevice.framework in Frameworks */,
-				BCB950A62C6AF0A800C62508 /* CloudAccompanyLibrary.framework in Frameworks */,
+				BC1E28442C76DEB70063E0A1 /* CloudAccompanyLibrary.framework in Frameworks */,
 				BC3A55662BAA799B002E1616 /* KSTunerLibrary.framework in Frameworks */,
 				2779334127E3146B0010E277 /* CoreMedia.framework in Frameworks */,
 				2779333D27E314550010E277 /* AVFoundation.framework in Frameworks */,
@@ -5249,7 +5249,7 @@
 			children = (
 				BC3A55612BAA798A002E1616 /* KSTunerLibrary.framework */,
 				BCB950A32C6AF08400C62508 /* KSToolLibrary.framework */,
-				BCB950A52C6AF0A800C62508 /* CloudAccompanyLibrary.framework */,
+				BC1E28432C76DEB60063E0A1 /* CloudAccompanyLibrary.framework */,
 				BC00A65B2BB58F1700231B74 /* LLPhotoBrowse.bundle */,
 				BC00A6592BB58F0000231B74 /* WMPlayer.bundle */,
 				BC24570E286C437D00D1F7C0 /* SoundFontFile */,

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

@@ -94,22 +94,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
KulexiuForTeacher/KulexiuForTeacher/Common/Base/WebView/KSBaseWKWebViewController.m

@@ -1194,25 +1194,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) {
+                
+            }];
+        }
     }
 }
 

+ 1 - 2
KulexiuForTeacher/KulexiuForTeacher/Common/MediaMerge/AudioMerge/MergePlayer/KSMergeEnginePlayer.m

@@ -355,8 +355,7 @@
                 [self.nodePlayer stop];
             }
             self.isInterrupt = YES;
-            NSError *error = [[NSError alloc] initWithDomain:NSCocoaErrorDomain code:99999 userInfo:@{@"errorDesc" : @"播放被打断"}];
-            [self sendInterruptError:error];
+            [self sendInterruptError:nil];
         }
     }
     else if (type == AVAudioSessionInterruptionTypeEnded) {

BIN
KulexiuForTeacher/KulexiuForTeacher/ToolKit/CloudAccompanyLibrary.framework/CloudAccompanyLibrary


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


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


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