Browse Source

1.修复移植nas下载导致原来的下载不行问题

huangxiaodong 11 months ago
parent
commit
c71d3ee2c9

+ 0 - 2
创维盒子/双子星云手机/AppDelegate/Config/Notification.h

@@ -78,8 +78,6 @@
 /* 下载完成一张缩略图通知*/
 #define downloadThumbnailDoneOneNotification                 @"downloadThumbnailDoneOneNot"
 
-/* 下载文件通知*/
-#define downloadFileBeginNotification                 @"downloadFileBeginNot"
 /*下载文件更新通知*/
 #define downloadFileRefreshNotification                 @"downloadFileRefreshNot"
 

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

@@ -251,7 +251,7 @@ static downloadManager * cur_downloadManager = nil;
     
     _curDownloadFileModel.curDownloadStateType = downloadStateUploading;
     
-    [[NSNotificationCenter defaultCenter] postNotificationName:downloadFileBeginNotification object:_curDownloadFileModel];
+    [[webSocketManager shareInstance] begindownloadFileFunBy:_curDownloadFileModel];
 }
 
 - (void)DownloadFileDoneOneFileFun
@@ -553,7 +553,7 @@ static downloadManager * cur_downloadManager = nil;
         return;
     }
     
-    [[NSNotificationCenter defaultCenter] postNotificationName:downloadFileBeginNotification object:_curDownloadFileModel];
+    [[webSocketManager shareInstance] begindownloadFileFunBy:_curDownloadFileModel];
 }
 
 - (BOOL)checkDownloadingFun

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

@@ -11,9 +11,9 @@
 #import "downloadManager.h"
 
 @implementation webSocketManager (downloadFile)
-- (void)begindownloadFileFun:(NSNotification *)notification
+- (void)begindownloadFileFunBy:(couldPhoneFileModel *)couldPhoneFileMod
 {
-    self.curDownloadFileModel = [notification object];
+    self.curDownloadFileModel = couldPhoneFileMod;
     
     if(!self.curDownloadFileModel
        || ![self.curDownloadFileModel isKindOfClass:[couldPhoneFileModel class]]){