Prechádzať zdrojové kódy

去掉文件缓存开关,增加通用性

Ray Zhang 6 rokov pred
rodič
commit
3ab538a256
1 zmenil súbory, kde vykonal 4 pridanie a 4 odobranie
  1. 4 4
      common/FileCache.m

+ 4 - 4
common/FileCache.m

@@ -44,8 +44,8 @@
     
     AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
     
-    if(appDelegate.bEnable_Cache==false)
-        return ;
+//    if(appDelegate.bEnable_Cache==false)
+//        return ;
     if(imgData==nil)
         return;
     NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
@@ -90,8 +90,8 @@
     
     AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
     
-    if(appDelegate.bEnable_Cache==false)
-        return nil;
+//    if(appDelegate.bEnable_Cache==false)
+//        return nil;
     
     
     NSData* data = nil;