Commit a3d8fc5d6b9d3060157e68afaf0e0f5146635193
1 parent
5de51906
提交0.0.10
Showing
2 changed files
with
3 additions
and
7 deletions
CNLiveImagePickerController.podspec
| @@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
| 8 | 8 | ||
| 9 | Pod::Spec.new do |s| | 9 | Pod::Spec.new do |s| |
| 10 | s.name = 'CNLiveImagePickerController' | 10 | s.name = 'CNLiveImagePickerController' |
| 11 | - s.version = '0.0.9' | 11 | + s.version = '0.0.10' |
| 12 | s.summary = '相册' | 12 | s.summary = '相册' |
| 13 | 13 | ||
| 14 | # This description is used to generate tags and improve search results. | 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,14 +701,10 @@ static CGFloat itemMargin = 5; | ||
| 701 | TZImagePickerController *tzImagePickerVc = (TZImagePickerController *)self.navigationController; | 701 | TZImagePickerController *tzImagePickerVc = (TZImagePickerController *)self.navigationController; |
| 702 | 702 | ||
| 703 | NSString *outputPath = @""; | 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 | if ([NSString isEmpty:tzImagePickerVc.conversationId]) { | 704 | if ([NSString isEmpty:tzImagePickerVc.conversationId]) { |
| 709 | - outputPath = [[CNLiveBusinessTools chatFilePathByUserId:CNUserShareModel.uid] stringByAppendingString:filaName]; | 705 | + outputPath = [CNLiveBusinessTools chatFilePathByUserId:CNUserShareModel.uid]; |
| 710 | }else{ | 706 | }else{ |
| 711 | - outputPath = [[CNLiveBusinessTools newChatFilePathByUserId:tzImagePickerVc.conversationId] stringByAppendingPathComponent:filaName]; | 707 | + outputPath = [CNLiveBusinessTools newChatFilePathByUserId:tzImagePickerVc.conversationId]; |
| 712 | 708 | ||
| 713 | } | 709 | } |
| 714 | 710 |