소스 검색

1.下载图片heic格式保存路径到文件问题

huangxiaodong 10 달 전
부모
커밋
ea1497a4e6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      创维盒子/双子星云手机/cloudPhone/websocket/webSocketManager+downloadFile.m

+ 1 - 1
创维盒子/双子星云手机/cloudPhone/websocket/webSocketManager+downloadFile.m

@@ -138,7 +138,7 @@
     NSString *fileName = [self.curDownloadFileModel getFileNameFun];
     NSString*pathStr = [cachesFileManager getFilePathWithName:fileName type:DownLoadFileType];
     
-    if([self.curDownloadFileModel.fileType isEqualToString:@".jpg"]){
+    if([self.curDownloadFileModel.fileType containsString:@"jpg"]){
        
         if([iTools canSaveFileToAlbumByPhoto:YES withName:fileName]){
             UIImage *image = [UIImage imageWithContentsOfFile:pathStr];