Procházet zdrojové kódy

1.获取已安装应用使用新解决,增加应用的缓存数据

huangxiaodong před 16 hodinami
rodič
revize
83ef7c785d
1 změnil soubory, kde provedl 16 přidání a 16 odebrání
  1. 16 16
      创维盒子/code/NAS/NasPreviewAPPViewController.m

+ 16 - 16
创维盒子/code/NAS/NasPreviewAPPViewController.m

@@ -82,21 +82,21 @@
     
     
     //数据缓存
-//    NSString *key = stringKeyAddSn(@"getInstalledApk");
-//    NSDictionary *DataDict = [HWDataManager getObjectWithKey:key];
-//    if(DataDict){
-//        _getInstalledAppListMod = [[getInstalledAppListModel alloc] initWithDictionary:DataDict error:nil];
-//        if (_getInstalledAppListMod) {
-//            _curInstalledAppListMod = _getInstalledAppListMod;
-//        }
-//    }
-//    
-//    //数据缓存
-//    NSString *keyUninstall = stringKeyAddSn(@"getUninstallApk");
-//    NSDictionary *DataDictUninstall = [HWDataManager getObjectWithKey:keyUninstall];
-//    if(DataDictUninstall){
-//        _getUninstalledAppListMod = [[getInstalledAppListModel alloc] initWithDictionary:DataDictUninstall error:nil];
-//    }
+    NSString *key = stringKeyAddSn(@"getInstalledApk");
+    NSDictionary *DataDict = [HWDataManager getObjectWithKey:key];
+    if(DataDict){
+        _getInstalledAppListMod = [[getInstalledAppListModel alloc] initWithDictionary:DataDict error:nil];
+        if (_getInstalledAppListMod) {
+            _curInstalledAppListMod = _getInstalledAppListMod;
+        }
+    }
+    
+    //数据缓存
+    NSString *keyUninstall = stringKeyAddSn(@"getUninstallApk");
+    NSDictionary *DataDictUninstall = [HWDataManager getObjectWithKey:keyUninstall];
+    if(DataDictUninstall){
+        _getUninstalledAppListMod = [[getInstalledAppListModel alloc] initWithDictionary:DataDictUninstall error:nil];
+    }
    
     
     [self drawAnyView];
@@ -1072,7 +1072,7 @@
     [self showNewIndicatorHaveStrWithCanBack:YES canTouch:NO showText:NSLocalizedString(@"common_loading_tip",nil)];
     
     KWeakSelf
-    [[netWorkManager shareInstance] cloudPhoneGETCallBackCode:@"getInstalledApk" Parameters:paraDict success:^(id  _Nonnull responseObject) {
+    [[netWorkManager shareInstance] cloudPhoneGETCallBackCode:@"getInstalledApkNew" Parameters:paraDict success:^(id  _Nonnull responseObject) {
         //[weakSelf.tableView.mj_footer endRefreshing];
         [weakSelf removeNewIndicatorHaveStr];
         getInstalledAppListModel *curModel = [[getInstalledAppListModel alloc] initWithDictionary:responseObject error:nil];