Browse Source

fix param

lxy 1 year ago
parent
commit
61620608df
1 changed files with 5 additions and 5 deletions
  1. 5 5
      LenzCameraNativeModuleForRN/Classes/inner/DB/LenzDataManager.m

+ 5 - 5
LenzCameraNativeModuleForRN/Classes/inner/DB/LenzDataManager.m

@@ -77,31 +77,31 @@ NSString *const LenFileDirectoryAiPanoramaPath = @"/aiPanorama/";
 + (NSString *)singlePath {
     NSTimeInterval timeInterval = [[NSDate date] timeIntervalSince1970];
     NSString *key = [NSString stringWithFormat:@"%.0f", timeInterval];
-    return [[LenzDataManager singleDirectory] stringByAppendingPathComponent:[NSString stringWithFormat:@"%@.jpg?pf=iOS&mode=single",key]];
+    return [[LenzDataManager singleDirectory] stringByAppendingPathComponent:[NSString stringWithFormat:@"i_single_%@.jpg",key]];
 }
 
 + (NSString *)continuousPath {
     NSTimeInterval timeInterval = [[NSDate date] timeIntervalSince1970];
     NSString *key = [NSString stringWithFormat:@"%.0f", timeInterval];
-    return [[LenzDataManager continuousDirectory] stringByAppendingPathComponent:[NSString stringWithFormat:@"%@.jpg?pf=iOS&mode=continuous",key]];
+    return [[LenzDataManager continuousDirectory] stringByAppendingPathComponent:[NSString stringWithFormat:@"i_continuous_%@.jpg",key]];
 }
 
 + (NSString *)panoramPath {
     NSTimeInterval timeInterval = [[NSDate date] timeIntervalSince1970];
     NSString *key = [NSString stringWithFormat:@"%.0f", timeInterval];
-    return [[LenzDataManager panoramsDirectory] stringByAppendingPathComponent:[NSString stringWithFormat:@"%@.jpg?pf=iOS&mode=panorama",key]];
+    return [[LenzDataManager panoramsDirectory] stringByAppendingPathComponent:[NSString stringWithFormat:@"i_panorama_%@.jpg",key]];
 }
 
 + (NSString *)aiPanoramPath {
     NSTimeInterval timeInterval = [[NSDate date] timeIntervalSince1970];
     NSString *key = [NSString stringWithFormat:@"%.0f", timeInterval];
-    return [[LenzDataManager aiPanoramsDirectory] stringByAppendingPathComponent:[NSString stringWithFormat:@"%@.jpg?pf=iOS&mode=panoramaPlus",key]];
+    return [[LenzDataManager aiPanoramsDirectory] stringByAppendingPathComponent:[NSString stringWithFormat:@"i_panoramaPlus_%@.jpg",key]];
 }
 
 + (NSString *)moviePath {
     NSTimeInterval timeInterval = [[NSDate date] timeIntervalSince1970];
     NSString *key = [NSString stringWithFormat:@"%.0f", timeInterval];
-    return [[LenzDataManager movieDirectory] stringByAppendingPathComponent:[NSString stringWithFormat:@"%@.mov",key]];
+    return [[LenzDataManager movieDirectory] stringByAppendingPathComponent:[NSString stringWithFormat:@"i_video_%@.mov",key]];
 }