Parcourir la source

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

Ray Zhang il y a 6 ans
Parent
commit
3ab538a256
1 fichiers modifiés avec 4 ajouts et 4 suppressions
  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;