|
@@ -427,7 +427,7 @@
|
|
|
// 上传图片
|
|
|
NSData *imgData = [UIImage compressImage:firstImage maxLength:5];
|
|
|
NSString *fileName = @"styleImage";
|
|
|
- [UPLOAD_MANAGER configWithfilePath:@"/user/"];
|
|
|
+ [UPLOAD_MANAGER configWithfilePath:@"/userStyle/"];
|
|
|
[UPLOAD_MANAGER uploadImage:imgData fileName:fileName successCallback:^(NSMutableArray * _Nonnull fileUrlArray) {
|
|
|
NSString *imageUrl = [fileUrlArray lastObject];
|
|
|
if (self.videoArray.count > index) {
|
|
@@ -449,7 +449,7 @@
|
|
|
// 上传图片
|
|
|
NSData *imgData = [UIImage compressImage:firstImage maxLength:5];
|
|
|
NSString *fileName = @"styleImage";
|
|
|
- [UPLOAD_MANAGER configWithfilePath:@"/user/"];
|
|
|
+ [UPLOAD_MANAGER configWithfilePath:@"/userStyle/"];
|
|
|
[UPLOAD_MANAGER uploadImage:imgData fileName:fileName successCallback:^(NSMutableArray * _Nonnull fileUrlArray) {
|
|
|
NSString *imageUrl = [fileUrlArray lastObject];
|
|
|
[self uploadVideoWithUrl:videoUrl coverUrl:imageUrl];
|
|
@@ -475,7 +475,7 @@
|
|
|
NSURL *fileUrl = [NSURL fileURLWithPath:videoUrl];
|
|
|
NSData *fileData = [NSData dataWithContentsOfURL:fileUrl];
|
|
|
NSString *suffix = [NSString stringWithFormat:@".%@",[fileUrl pathExtension]];
|
|
|
- [UPLOAD_MANAGER configWithfilePath:@"/user/"];
|
|
|
+ [UPLOAD_MANAGER configWithfilePath:@"/userStyle/"];
|
|
|
[UPLOAD_MANAGER videoUpload:fileData fileName:@"video" fileSuffix:suffix progress:^(int64_t bytesWritten, int64_t totalBytes) {
|
|
|
int progress = (int)(bytesWritten / totalBytes * 100);
|
|
|
__block NSString *tipsMessage = [NSString stringWithFormat:@"上传中 %d%%",progress];
|
|
@@ -742,7 +742,7 @@
|
|
|
- (void)updateWithUserLogo:(UIImage *)image {
|
|
|
NSData *imgData = [UIImage turnsImaegDataByImage:image];
|
|
|
NSString *fileName = @"image";
|
|
|
- [UPLOAD_MANAGER configWithfilePath:@"/user/"];
|
|
|
+ [UPLOAD_MANAGER configWithfilePath:@"/userStyle/"];
|
|
|
[UPLOAD_MANAGER uploadImage:imgData fileName:fileName successCallback:^(NSMutableArray * _Nonnull fileUrlArray) {
|
|
|
NSString *avatarUrl = [fileUrlArray lastObject];
|
|
|
[self modifyUserMessage:avatarUrl gender:nil];
|