Browse Source

1.上传延时获取缩略图

huangxiaodong 1 year ago
parent
commit
eb51b0e2a7

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

@@ -276,6 +276,9 @@
     if(isExtraFileType && !isExtraPathFind){
         self.photoPreViewBottomV.isExtraFileAndNotFindPathType = YES;
     }
+    else{
+        self.photoPreViewBottomV.isExtraFileAndNotFindPathType = NO;
+    }
     
     //self.photoPreViewBottomV.availableStorage = _availableStorage;
     [self setDataToBottomViewFun];

+ 1 - 1
创维盒子/双子星云手机/Class/Set/uploadFile/photoView/photoPreViewBottomView.m

@@ -174,7 +174,7 @@
 - (void)didClickButFun:(UIButton*)but
 {
     if(_isExtraFileAndNotFindPathType){
-        [[iToast makeAttrText:NSLocalizedString(@"upload_file_and_not_path_tip",nil)] show];
+        [[iToast makeText:NSLocalizedString(@"upload_file_and_not_path_tip",nil)] show];
         return;
     }
     

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

@@ -181,13 +181,13 @@ static uploadFileManager * cur_uploadFileShareInstance = nil;
             }
             else{
                 
-                [[PHImageManager defaultManager] requestImageDataForAsset:curModel.asset options:nil resultHandler:^(NSData * _Nullable imageData, NSString * _Nullable dataUTI, UIImageOrientation orientation, NSDictionary * _Nullable info) {
-                        // 直接得到最终的 NSData 数据
-                        if (imageData) {
-                            curModel.imageData = imageData;
-                            [cachesFileManager getFileNameWithContent:curModel.imageData fileName:curModel.filename type:uploadFileTypeImage];;
-                        }
-                }];
+//                [[PHImageManager defaultManager] requestImageDataForAsset:curModel.asset options:nil resultHandler:^(NSData * _Nullable imageData, NSString * _Nullable dataUTI, UIImageOrientation orientation, NSDictionary * _Nullable info) {
+//                        // 直接得到最终的 NSData 数据
+//                        if (imageData) {
+//                            curModel.imageData = imageData;
+//                            [cachesFileManager getFileNameWithContent:curModel.imageData fileName:curModel.filename type:uploadFileTypeImage];;
+//                        }
+//                }];
             }
            
         }

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

@@ -649,6 +649,9 @@
     if(isExtraFileType && !isExtraPathFind){
         self.uploadFileBottomV.isExtraFileAndNotFindPathType = YES;
     }
+    else{
+        self.uploadFileBottomV.isExtraFileAndNotFindPathType = NO;
+    }
     
     [self setDataToBottomViewFun];
 }