Commit 6d72a0aa97adef495e32a813bb92c2eb3a0afea1

Authored by 梁星国
1 parent b9531383

提交0.0.17_更改缓存路径

CNLiveImagePickerController.podspec
... ... @@ -8,7 +8,7 @@
8 8  
9 9 Pod::Spec.new do |s|
10 10 s.name = 'CNLiveImagePickerController'
11   - s.version = '0.0.16'
  11 + s.version = '0.0.17'
12 12 s.summary = '相册'
13 13  
14 14 # This description is used to generate tags and improve search results.
... ...
CNLiveImagePickerController/Classes/TZImageManager.m
... ... @@ -886,8 +886,7 @@ static dispatch_once_t onceToken;
886 886 NSDateFormatter *formater = [[NSDateFormatter alloc] init];
887 887 [formater setDateFormat:@"yyyy-MM-dd-HH:mm:ss-SSS"];
888 888 #pragma mark - 添加: 原有逻辑-根据会话id取得path(LXG)
889   -// NSString *filaName = [NSString stringWithFormat:@"output-%@_%d_fileType=videoType.mp4",[formater stringFromDate:[NSDate date]],arc4random()];
890   - NSString *filaName = [NSString stringWithFormat:@"%3.f_%d_video_file.mp4", [[NSDate date] timeIntervalSince1970],arc4random() % 100000];
  889 + NSString *filaName = [NSString stringWithFormat:@"output-%@_%d_fileType=videoType.mp4",[formater stringFromDate:[NSDate date]],arc4random()];
891 890 // NSString *outputPath = [NSHomeDirectory() stringByAppendingFormat:@"/tmp/output-%@.mp4", [formater stringFromDate:[NSDate date]]];
892 891 NSString *outputPath = @"";
893 892 if (self.conversationId) {
... ...
CNLiveImagePickerController/Classes/TZPhotoPickerController.m
... ... @@ -714,8 +714,8 @@ static CGFloat itemMargin = 5;
714 714 if ([NSString isEmpty:tzImagePickerVc.conversationId]) {
715 715 outputPath = [CNLiveBusinessTools chatFilePathByUserId:CNUserShareModel.uid];
716 716 }else{
717   - NSString *fileName = [NSString stringWithFormat:@"%3.f_%d_video_file", [[NSDate date] timeIntervalSince1970],arc4random() % 100000];
718   - outputPath = [CNLiveBusinessTools chatImageAndVideoUploadIMCachePath:fileName];
  717 +
  718 + outputPath = [CNLiveBusinessTools getChatImageAndVideoUploadIMCacheDirectory];
719 719  
720 720 }
721 721  
... ...