Explorar el Código

1.埋点错误

huangxiaodong hace 11 meses
padre
commit
a8b02ec93c

+ 1 - 1
创维盒子/双子星云手机/Class/Set/previewFile/imageDetailsScrollViewController.m

@@ -432,7 +432,7 @@
         lastFileMod.time = dataModel.time;
         lastFileMod.size = dataModel.size;
         lastFileMod.duration = dataModel.duration;
-        lastFileMod.type = @"jpg";
+        lastFileMod.type = @".jpg";
         lastFileMod.lastPreTime = [iTools getNowTimeStamp];
         
         [[lastFileManager shareManager] saveFileInfoWith:lastFileMod with:dataModel.path];

+ 1 - 1
创维盒子/双子星云手机/Class/Set/previewFile/previewAudioOrDocumentViewController.m

@@ -946,7 +946,7 @@
         //数据埋点
         [[netWorkManager shareInstance] DataEmbeddingPointBy:3 withEventValue:@"File_delete"];
     }
-    else if([firstFileType isEqualToString:@"jpg"]){
+    else if([firstFileType containsString:@"jpg"]){
         //数据埋点
         [[netWorkManager shareInstance] DataEmbeddingPointBy:3 withEventValue:@"Image_delete"];
     }

+ 1 - 1
创维盒子/双子星云手机/Class/Set/previewFile/previewFileAndFolderSecondViewController.m

@@ -281,7 +281,7 @@
                 [weakSelf getFileListFun];
             };
         }
-        else if([dataModel.type isEqualToString:@"jpg"]){
+        else if([dataModel.type containsString:@"jpg"]){
 
             NSMutableArray *jpgDataArr = [NSMutableArray new];
             NSInteger index = 0;

+ 2 - 2
创维盒子/双子星云手机/Class/Set/previewFile/previewFileAndFolderViewController.m

@@ -408,7 +408,7 @@
                 [weakSelf getFileListFun];
             };
         }
-        else if([dataModel.type isEqualToString:@"jpg"]){
+        else if([dataModel.type containsString:@"jpg"]){
 
             NSMutableArray *jpgDataArr = [NSMutableArray new];
             NSInteger index = 0;
@@ -968,7 +968,7 @@
         //数据埋点
         [[netWorkManager shareInstance] DataEmbeddingPointBy:3 withEventValue:@"File_delete"];
     }
-    else if([firstFileType isEqualToString:@"jpg"]){
+    else if([firstFileType containsString:@"jpg"]){
         //数据埋点
         [[netWorkManager shareInstance] DataEmbeddingPointBy:3 withEventValue:@"Image_delete"];
     }

+ 2 - 2
创维盒子/双子星云手机/Class/Set/uploadFile/downLoadFile/view/downLoadPreViewCell.m

@@ -274,7 +274,7 @@
     {
         placeholderImage = [UIImage imageNamed:@"uploadFile_Video"];
     }
-    else if([curNASFileAndFolderDataModel.type isEqualToString:@"jpg"])
+    else if([curNASFileAndFolderDataModel.type containsString:@"jpg"])
     {
         placeholderImage = [UIImage imageNamed:@"uploadFile_image"];
         
@@ -325,7 +325,7 @@
     }
 
     if([curNASFileAndFolderDataModel.type isEqualToString:@"video"]
-       ||([curNASFileAndFolderDataModel.type isEqualToString:@"jpg"])){
+       ||([curNASFileAndFolderDataModel.type containsString:@"jpg"])){
         fileUrl = [fileUrl  stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
         
         [mImageView sd_setImageWithURL:[NSURL URLWithString:fileUrl] placeholderImage:placeholderImage completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {

+ 3 - 3
创维盒子/双子星云手机/Class/Set/uploadFile/uploadFileRecordViewController.m

@@ -1106,9 +1106,9 @@
     
     if(!isSameFileType){
         //数据埋点
-        [[netWorkManager shareInstance] DataEmbeddingPointBy:3 withEventValue:@"File_udownload"];
+        [[netWorkManager shareInstance] DataEmbeddingPointBy:3 withEventValue:@"File_download"];
     }
-    else if([firstFileType isEqualToString:@"jpg"]){
+    else if([firstFileType containsString:@"jpg"]){
         //数据埋点
         [[netWorkManager shareInstance] DataEmbeddingPointBy:3 withEventValue:@"Image_download"];
     }
@@ -1122,7 +1122,7 @@
     }
     else{
         //数据埋点
-        [[netWorkManager shareInstance] DataEmbeddingPointBy:3 withEventValue:@"File_udownload"];
+        [[netWorkManager shareInstance] DataEmbeddingPointBy:3 withEventValue:@"File_download"];
     }
 }
 

+ 2 - 2
创维盒子/双子星云手机/NAS/NASViewController.m

@@ -370,14 +370,14 @@
                 [weakSelf getLastFileDataFun];
             };
         }
-        else if([dataModel.type isEqualToString:@"jpg"]){
+        else if([dataModel.type containsString:@"jpg"]){
             
             NSMutableArray *jpgDataArr = [NSMutableArray new];
             NSInteger index = 0;
             
             for (int i=0; i<_lastFileDataArr.count; i++) {
                 lastFileModel* jpgDataModel = _lastFileDataArr[i];
-                if([jpgDataModel.type isEqualToString:@"jpg"]){
+                if([jpgDataModel.type containsString:@"jpg"]){
                     if(i == row){
                         index = jpgDataArr.count;
                     }

+ 1 - 1
创维盒子/双子星云手机/NAS/NasPreviewVideoViewController.m

@@ -863,7 +863,7 @@
     for (NASFilePicDataArrModel *dataModel in _didSelectListArr) {
         
         couldPhoneFileModel* fileModel =  [couldPhoneFileModel new];
-        fileModel.fileType = @"audio";
+        fileModel.fileType = @"video";
         fileModel.path = dataModel.path;
         fileModel.name = dataModel.name;
         fileModel.length = dataModel.size;

+ 3 - 3
创维盒子/双子星云手机/NAS/nasLastFileViewController.m

@@ -240,14 +240,14 @@
                 [weakSelf getLastFileDataFun];
             };
         }
-        else if([dataModel.type isEqualToString:@"jpg"]){
+        else if([dataModel.type containsString:@"jpg"]){
             
             NSMutableArray *jpgDataArr = [NSMutableArray new];
             NSInteger index = 0;
             
             for (int i=0; i<_lastFileDataArr.count; i++) {
                 lastFileModel* jpgDataModel = _lastFileDataArr[i];
-                if([dataModel.type isEqualToString:@"jpg"]){
+                if([dataModel.type containsString:@"jpg"]){
                     
                     if(i == row){
                         index = jpgDataArr.count;
@@ -450,7 +450,7 @@
         //数据埋点
         [[netWorkManager shareInstance] DataEmbeddingPointBy:3 withEventValue:@"File_delete"];
     }
-    else if([firstFileType isEqualToString:@"jpg"]){
+    else if([firstFileType containsString:@"jpg"]){
         //数据埋点
         [[netWorkManager shareInstance] DataEmbeddingPointBy:3 withEventValue:@"Image_delete"];
     }

+ 2 - 2
创维盒子/双子星云手机/NAS/view/lastFileTableViewCell.m

@@ -137,7 +137,7 @@
     {
         placeholderImage = [UIImage imageNamed:@"uploadFile_Video"];
     }
-    else if([_curLastFileModel.type isEqualToString:@"jpg"])
+    else if([_curLastFileModel.type containsString:@"jpg"])
     {
         placeholderImage = [UIImage imageNamed:@"uploadFile_image"];
         
@@ -188,7 +188,7 @@
     }
 
     if([_curLastFileModel.type isEqualToString:@"video"]
-       ||([_curLastFileModel.type isEqualToString:@"jpg"])){
+       ||([_curLastFileModel.type containsString:@"jpg"])){
         fileUrl = [fileUrl  stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
         
         [_mImageView sd_setImageWithURL:[NSURL URLWithString:fileUrl] placeholderImage:placeholderImage completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {