Commit a3d8fc5d6b9d3060157e68afaf0e0f5146635193
1 parent
5de51906
提交0.0.10
Showing
2 changed files
with
3 additions
and
7 deletions
CNLiveImagePickerController.podspec
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 | ... | ... |