Browse Source

1.代码优化

huangxiaodong 1 year ago
parent
commit
b624c4e591

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

@@ -1057,7 +1057,7 @@
     
     NSString *linkErrTip = NSLocalizedString(@"player_link_fail_tip_type9",nil);
     if([AFNetworkReachabilityManager sharedManager].networkReachabilityStatus == AFNetworkReachabilityStatusNotReachable){
-        linkErrTip = NSLocalizedString(@"player_link_fail_phone_Tips",nil);
+        //linkErrTip = NSLocalizedString(@"player_link_fail_phone_Tips",nil);
         _isNeedToStopWork = YES;
         [self showNetErrorAlertType2Fun];
         return;

+ 1 - 1
创维盒子/双子星云手机/Class/Set/uploadFile/fileTransfeSet/view/filePathCreatPopView.m

@@ -22,7 +22,7 @@
 }
 
 @property (nonatomic, strong) UITableView *tableView;
-@property(nonatomic,copy) NSMutableArray *curDataArr;//磁盘数据 +默认
+@property(nonatomic,strong) NSMutableArray *curDataArr;//磁盘数据 +默认
 @end
 
 @implementation filePathCreatPopView

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

@@ -591,7 +591,7 @@
 #pragma mark 处理上传中的 状态点击事件
 - (void)handleDownloadingStateTapFunBy:(BOOL)isSuspendType with:(ShareFileDataModel*)model AtIndexPath:(NSIndexPath *)indexPath
 {
-    boxDownloadFileRecordCell * cell = [self cellForRowAtIndexPath:indexPath];
+    //boxDownloadFileRecordCell * cell = [self cellForRowAtIndexPath:indexPath];
     
     HLog(@"%d",isSuspendType);
     
@@ -621,7 +621,7 @@
     
     [[boxDownloadFileManager shareInstance] updataBoxSaveDataInFailBy:model];
     
-    boxDownloadFileRecordCell * cell = [self cellForRowAtIndexPath:indexPath];
+    //boxDownloadFileRecordCell * cell = [self cellForRowAtIndexPath:indexPath];
     [[boxDownloadFileManager shareInstance] reDownloadFileFunBy:@[model] withAll:NO];
     
 }

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

@@ -1145,7 +1145,7 @@
 #pragma mark nas http下载完成
 - (void)downloadTaskFinishedNoti:(NSNotification *)notification
 {
-    customDownloadOperation *model = notification.object;
+    //customDownloadOperation *model = notification.object;
     //NSString *url = model.url;
     
     [self getDownloadDataInDatabaseFun:NO];

+ 1 - 1
创维盒子/双子星云手机/CloudPlayer/PlayerViewController+AdjustBtnFrame.m

@@ -52,7 +52,7 @@
     if (mPlayerView.width > mPlayerView.height){
         CGFloat centerY = mPlayerView.height*0.5;
         CGFloat value1Y =  centerY - centerPoint.y;
-        CGFloat adaptValue =  (SCREEN_W - mPlayerView.glkshowImageView.hw_h)*0.5; // 补偿刘海屏上下黑边
+        //CGFloat adaptValue =  (SCREEN_W - mPlayerView.glkshowImageView.hw_h)*0.5; // 补偿刘海屏上下黑边
         
         if (value1Y >= 0) { // 左边
             HLog(@"云手机推流界面 靠上边");

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

@@ -966,7 +966,7 @@
 //  NSString *currentVersion = [NSBundle mainBundle].infoDictionary[@"CFBundleVersion"];
     NSString *currentVersion = [NSBundle mainBundle].infoDictionary[@"CFBundleShortVersionString"];
     NSString *newVersion = [versionModel.versionNumber stringByReplacingOccurrencesOfString:@"v" withString:@""];  //去掉v
-    newVersion = [versionModel.versionNumber stringByReplacingOccurrencesOfString:@"V" withString:@""];  //去掉v
+    newVersion = [newVersion stringByReplacingOccurrencesOfString:@"V" withString:@""];  //去掉v
     //HLog(@"%@---%@", newVersion, currentVersion);
     if ([currentVersion compare:newVersion options:NSNumericSearch] == NSOrderedSame) { // 本地版本号 == 服务器版本号
         [self showNewerGuideFun];

+ 4 - 0
创维盒子/双子星云手机/NAS/recenFile/audioPlayListManager.m

@@ -248,6 +248,10 @@
         }
     }
     
+    if(!preDownloadModel){
+        return NO;
+    }
+    
     //NSString *curFilePath = preDownloadModel.localPath;
     NSString *curFilePath  = [[audioPlayListManager shareManager] getAudioCacheFullPathBy:preDownloadModel.name];
     

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

@@ -197,7 +197,7 @@ static webSocketManager *webSocketManagerInstance = nil;
                 if ([[dataDict allKeys] containsObject:@"data"]) {
                     NSDictionary *data = dataDict[@"data"];
                     if ([[data allKeys] containsObject:@"userName"]) {
-                        useName = [data objectForKey:@"userName"];
+                        //useName = [data objectForKey:@"userName"];
                     }
                 }