Browse Source

1.盒子1更换盒子2设备成功后,盒子2最近文件记录显示盒子1的

huangxiaodong 1 year ago
parent
commit
b6181d9f7a

+ 3 - 0
创维盒子/双子星云手机/AppDelegate/PrefixHeader.pch

@@ -100,6 +100,9 @@ isBangsScreen; \
 #define CloudService   @"http://testprivacy.phone.androidscloud.com:1801"
 #define shareService   @"http://testprivacy.phone.androidscloud.com:1801/h5/#/pages/fileSharing/index?productType=Private-X&token="
 
+//预生产环境
+//#define CloudService   @"http://testprivacy.phone.androidscloud.com:10900"
+//#define shareService   @" http://testprivacy.phone.androidscloud.com:10900/h5/#/pages/fileSharing/index?productType=Private-X&token="
 
 //生产环境
 //#define CloudService   @"http://hiboxde.armclouding.com:7780"

+ 1 - 1
创维盒子/双子星云手机/NAS/recenFile/lastFileManager.h

@@ -13,7 +13,7 @@ NS_ASSUME_NONNULL_BEGIN
 #define KLastFileDirector  @"lastFile"
 
 @interface lastFileManager : NSObject
-@property(nonatomic,strong) NSString *uid;//用户id 用来创建文件夹路径 防止不要用户的缓存关联
+@property(nonatomic,copy) NSString *uid;//用户id 用来创建文件夹路径 防止不要用户的缓存关联
 @property(nonatomic,assign) NSInteger saveDays;//默认90天
 @property (nonatomic, strong) NSMutableDictionary * _Nullable lastFileList;
 @property (nonatomic, strong) NSMutableArray * _Nullable lastFileListArr;

+ 17 - 6
创维盒子/双子星云手机/NAS/recenFile/lastFileManager.m

@@ -27,17 +27,28 @@
     return self;
 }
 
-- (NSString*)uid{
-    if(!_uid || _uid.length == 0){
-        return @"userName";
-    }
-    
-    return _uid;
+- (void)setUid:(NSString *)uid
+{
+    _uid = uid;
+    _lastFileList = nil;
+    _lastFileListArr = nil;
 }
 
+//- (NSString*)uid{
+//    if(!_uid || _uid.length == 0){
+//        return @"userName";
+//    }
+//    
+//    return _uid;
+//}
+
 - (NSString *)getFullDirector {
 
     NSString *account = self.uid;
+    if(!account){
+        account = @"userName";
+    }
+    
     if (account.length != 0)
     {
          NSString *fileFolder = [HWDataManager documentPathForAccount:account fileFolder:KLastFileDirector];