فهرست منبع

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

Ray Zhang 6 سال پیش
والد
کامیت
3ab538a256
1فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  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;