Commit a3d8fc5d6b9d3060157e68afaf0e0f5146635193

Authored by 梁星国
1 parent 5de51906

提交0.0.10

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.9'
  11 + s.version = '0.0.10'
12 12 s.summary = '相册'
13 13  
14 14 # This description is used to generate tags and improve search results.
... ...
CNLiveImagePickerController/Classes/TZPhotoPickerController.m
... ... @@ -701,14 +701,10 @@ static CGFloat itemMargin = 5;
701 701 TZImagePickerController *tzImagePickerVc = (TZImagePickerController *)self.navigationController;
702 702  
703 703 NSString *outputPath = @"";
704   - NSDateFormatter *formater = [[NSDateFormatter alloc] init];
705   - NSInteger rand = random();
706   - NSString *filaName = [NSString stringWithFormat:@"output-%@_fileType=videoType_%ld.mp4",[formater stringFromDate:[NSDate date]],rand];
707   -
708 704 if ([NSString isEmpty:tzImagePickerVc.conversationId]) {
709   - outputPath = [[CNLiveBusinessTools chatFilePathByUserId:CNUserShareModel.uid] stringByAppendingString:filaName];
  705 + outputPath = [CNLiveBusinessTools chatFilePathByUserId:CNUserShareModel.uid];
710 706 }else{
711   - outputPath = [[CNLiveBusinessTools newChatFilePathByUserId:tzImagePickerVc.conversationId] stringByAppendingPathComponent:filaName];
  707 + outputPath = [CNLiveBusinessTools newChatFilePathByUserId:tzImagePickerVc.conversationId];
712 708  
713 709 }
714 710  
... ...