Procházet zdrojové kódy

1.切换账号暂停
2.重新启动下载 只在打开app的第一次

huangxiaodong před 1 rokem
rodič
revize
efd6c3358f

+ 0 - 8
创维盒子/双子星云手机/AppDelegate/PrefixHeader.pch

@@ -92,14 +92,6 @@ isBangsScreen; \
 #define CloudService   @"http://14.18.190.141:1801"
 #define shareService   @"http://testprivacy.phone.armclouding.com:1801/h5/#/pages/fileSharing/index?productType=Private-X&token="
 
-//#define NASService [NSString stringWithFormat:@"http://%@:9888",[connectDeviceManager shareInstance].DeviceThirdIdMod.data.ip]
-//#define NASService [NSString stringWithFormat:@"https://%@:9888",[connectDeviceManager shareInstance].DeviceThirdIdMod.data.ip]
-
-//#define NASService @"http://127.0.0.1:9888";
-
-//#define NASService @"http://59.36.210.201:9888";
-//#define NASService @"http://172.17.0.2:9888";
-
 //生产环境
 //#define CloudService   @"http://hiboxde.armclouding.com:7780"
 

+ 12 - 0
创维盒子/双子星云手机/AppDelegate/SceneDelegate.m

@@ -775,6 +775,18 @@
     [downloadManager shareInstance].downLoadFileModelDataArr = [NSMutableArray new];
     
     [[backupsFileManager shareInstance] suspendBackupsFileFun];
+    
+    //frp的下载
+    //[YCDownloadManager pauseAllDownloadTask];
+    
+    NSString *uid =[connectDeviceManager shareInstance].DeviceThirdIdMod.data.sn;
+    if(uid){
+        
+    }
+    else{
+        uid = @"";
+    }
+    [YCDownloadManager updateUid:uid];
 }
 
 #pragma mark 上报版本号信息

+ 0 - 1
创维盒子/双子星云手机/Class/Set/uploadFile/receiveView/receiveDownloadRecordTableView.h

@@ -24,7 +24,6 @@ NS_ASSUME_NONNULL_BEGIN
 
 @property (nonatomic,assign) BOOL isEditType;
 @property (nonatomic,assign) BOOL isSelectAllType;
-@property (nonatomic,assign) BOOL reDownLoadAgainType;//
 @property (nonatomic,strong) NSMutableArray *selectModelArr;
 
 @property (nonatomic,copy) void (^didLongPressClick)(void);

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

@@ -734,11 +734,11 @@
 - (void)reDownLoadAgainFun
 {
   
-    if(_reDownLoadAgainType){
+    if([boxDownloadFileManager shareInstance].isFirstAutoStartType){
         return;
     }
     else{
-        _reDownLoadAgainType = YES;
+        [boxDownloadFileManager shareInstance].isFirstAutoStartType = YES;
     }
     
     //重新下载

+ 1 - 0
创维盒子/双子星云手机/Class/Set/uploadFile/uploadFileManager/boxDownloadFileManager.h

@@ -19,6 +19,7 @@ NS_ASSUME_NONNULL_BEGIN
 
 //数据库数据
 @property (nonatomic, strong) NSMutableArray * _Nullable databaseArr;
+@property (nonatomic, assign) BOOL  isFirstAutoStartType;//启动第一次需要重新开启
 
 //添加保存记录 NSArray<ShareFileDataModel>* fileListVOS;
 - (void)addBoxDownloadRecordFunBy:(NSArray*)arr complete:(custom_complete_B)complete;